pyds.Units

class pyds.Units(expression, validate=True)

Bases: builtins.object

Represents a PDS units expression.

Parameters
  • expression (str)

    An expression specifying the units.

  • validate (True or False)

    Whether expression should be checked to see if it’s a valid units expression.

Raises
Attributes
expression

Units expression. A str instance. Read-only.


Special Methods

Units.__str__()

Return a PDS serialized string (str) representing the object.

Called by str().