measurement.py 588 B

1234567891011121314151617181920212223
  1. from dataclasses import dataclass, field
  2. from .common import BaseMeasurement
  3. @dataclass(frozen=True)
  4. class Measurement24v(BaseMeasurement):
  5. current: tuple # [float, ...]
  6. status: tuple # [bool, ...]
  7. overload: tuple # [bool, ...]
  8. short_circuit: tuple # [bool, ...]
  9. limit: tuple # [bool, ...]
  10. pushbutton: tuple # [bool, ...]
  11. voltage: float
  12. series: str = field(default="24v")
  13. @dataclass(frozen=True)
  14. class Measurement480v(BaseMeasurement):
  15. voltage: tuple # [float, ...]
  16. current: tuple # [float, ...]
  17. phase: tuple # [float, ...]
  18. series: str = field(default="480v")