BaseDimension

class simtk.unit.basedimension.BaseDimension(name)

A physical dimension such as length, mass, or temperature.

It is unlikely the user will need to create new ones.

__init__(name)

Create a new BaseDimension.

Each new BaseDimension is assumed to be independent of all other BaseDimensions. Use the existing BaseDimensions in simtk.dimension instead of creating new ones.

Methods

__init__(name) Create a new BaseDimension.
__lt__(other)

The implicit order of BaseDimensions is the order in which they were created. This method is used for using BaseDimensions as hash keys, and also affects the order in which units appear in multi-dimensional Quantities.

Returns True if self < other, False otherwise.

__hash__()

Needed for using BaseDimensions as hash keys.

__delattr__

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

__format__()

default object formatter

__getattribute__

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

__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

__str__