Package pygeodesy :: Module units :: Class _NamedUnit |
[frames] | no frames]

# Class _NamedUnit

      object --+
               |
    named._Named --+
                   |
                  _NamedUnit

Known Subclasses:
  - Str
  - , Float
  - , Int

(INTERNAL) Base class for `units`.

Instance Methods
Inherited from `named._Named`: `__repr__`, `__str__`, `_dot_`, `attrs`, `classof`, `copy`, `toRepr`, `toStr`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| std_repr Property to get and set standard `repr` or named `toRepr` representation.
| units Property to get and set units name.
Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2` Inherited from `object`: `__class__`

Property Details

### std_repr Property to get and set standard `repr` or named `toRepr` representation. Get method: std_repr(self) - Get the representation (`bool`, `True` means standard). Set method: std_repr(self, std) - Set the representation (`True` or `"std"` for standard).

### units Property to get and set units name. Get method: units(self) - Get the units name (`str`). Set method: units(self, units) - Set the units name for this instance (`str` or `None` for default).