ScaledUnit

class simtk.unit.unit.ScaledUnit(factor, master, name, symbol)

ScaledUnit is like a BaseUnit, but it is based on another Unit.

ScaledUnit and BaseUnit are both used in the internals of Unit. They should only be used during the construction of Units.

__init__(factor, master, name, symbol)

Methods

__init__(factor, master, name, symbol)
conversion_factor_to(other)
get_conversion_factor_to_base_units()
get_dimension_tuple() Returns a sorted tuple of (BaseDimension, exponent) pairs, that can be used as a dictionary key.
iter_base_dimensions() Returns a sorted tuple of (BaseDimension, exponent) pairs, describing the dimension of this unit.
iter_base_units()
iter_base_dimensions()

Returns a sorted tuple of (BaseDimension, exponent) pairs, describing the dimension of this unit.

get_dimension_tuple()

Returns a sorted tuple of (BaseDimension, exponent) pairs, that can be used as a dictionary key.

__lt__(other)

Compare two ScaledUnits.

__str__()

Returns a string with the name of this ScaledUnit

__repr__()
__delattr__

x.__delattr__(‘name’) <==> del x.name

__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes