piel.types.units#
Attributes#
Classes#
A base model class that serves as the foundation for other measurement in the project. |
Module Contents#
- BaseSIUnitNameList#
- class Unit(/, **data: Any)[source]#
Bases:
piel.types.symbolic.SymbolicValueA base model class that serves as the foundation for other measurement in the project. This class extends pydantic’s BaseModel and includes additional configuration settings for strict validation and immutability.
- Config#
A nested class to configure the behavior of the model. arbitrary_types_allowed (bool): Allows arbitrary measurement. extra (str): Forbids extra attributes not defined in the model. validate_assignment (bool): Validates fields on assignment. strict (bool): Enforces strict type validation. allow_mutation (bool): Prevents mutation of the model’s fields.
- supplied_parameters() list[str]#
Returns a list of parameter names that have been supplied (i.e., are not None).
- datum: BaseSIUnitNameList | str#
- base: piel.types.core.NumericalTypes = 1#
In the format 1eN
- __mul__#
- __rmul__#
- __add__#
- __radd__#
- __truediv__#
- __rtruediv__#
- A#
- dB#
- dBm#
- degree#
- GHz#
- Hz#
- H#
- nm#
- ns#
- m#
- MHz#
- mm2#
- mW#
- ohm#
- ps#
- ratio#
- s#
- us#
- W#
- V#