pyLM.units#

Functions

angstrom(*qty)

Returns a representation of a number in angstroms

cm(*qty)

Returns a representation of a number in centimeters

day(*qty)

Returns a representation of a number in days

hr(*qty)

Returns a representation of a number in hours

micron(*qty)

Returns a representation of a number in micrometers

microsecond(*qty)

Returns a representation of a number in microseconds

minute(*qty)

Returns a representation of a number in minutes

mm(*qty)

Returns a representation of a number in millimeters

ms(*qty)

Returns a representation of a number in milliseconds

nm(*qty)

Returns a representation of a number in nanometers

ns(*qty)

Returns a representation of a number in nanoseconds

second(*qty)

Returns a representation of a number in seconds

pyLM.units.angstrom(*qty)[source]#

Returns a representation of a number in angstroms

Parameters:

qty – A list or singleton of a number

pyLM.units.cm(*qty)[source]#

Returns a representation of a number in centimeters

Parameters:

qty – A list or singleton of a number

pyLM.units.day(*qty)[source]#

Returns a representation of a number in days

Parameters:

qty – A list or singleton of a number

pyLM.units.hr(*qty)[source]#

Returns a representation of a number in hours

Parameters:

qty – A list or singleton of a number

pyLM.units.micron(*qty)[source]#

Returns a representation of a number in micrometers

Parameters:

qty – A list or singleton of a number

pyLM.units.microsecond(*qty)[source]#

Returns a representation of a number in microseconds

Parameters:

qty – A list or singleton of a number

pyLM.units.minute(*qty)[source]#

Returns a representation of a number in minutes

Parameters:

qty – A list or singleton of a number

pyLM.units.mm(*qty)[source]#

Returns a representation of a number in millimeters

Parameters:

qty – A list or singleton of a number

pyLM.units.ms(*qty)[source]#

Returns a representation of a number in milliseconds

Parameters:

qty – A list or singleton of a number

pyLM.units.nm(*qty)[source]#

Returns a representation of a number in nanometers

Parameters:

qty – A list or singleton of a number

pyLM.units.ns(*qty)[source]#

Returns a representation of a number in nanoseconds

Parameters:

qty – A list or singleton of a number

pyLM.units.second(*qty)[source]#

Returns a representation of a number in seconds

Seems silly, but for completeness and ability to annotate the unit in code.

Parameters:

qty – A list or singleton of a number