piel.types.experimental.device#
Note that this section of measurement measurement is separate from the main piel package flow because they correspond to specific measurement files that is not yet part of the main package in a flow used as per the devices provided.
Classes#
A base model class that serves as the foundation for other measurement in the project. |
|
Corresponds to the abstraction of a given device measurement. |
|
Corresponds to the abstraction of a given device measurement. |
Module Contents#
- class DeviceConfiguration(/, **data: Any)[source]#
Bases:
piel.types.core.PielBaseModelA 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).
- class Device(/, **data: Any)[source]#
Bases:
piel.types.connectivity.physical.PhysicalComponentCorresponds to the abstraction of a given device measurement.
- configuration: DeviceConfiguration | None = None#
- serial_number: str = ''#
- class MeasurementDevice(/, **data: Any)[source]#
Bases:
DeviceCorresponds to the abstraction of a given device measurement.
- measurement: piel.types.experimental.measurements.core.MeasurementConfiguration | None = None#
Contains the measurement information.