StatusRecord¶
- class vallenae.io.StatusRecord(time: float, channel: int, param_id: int, energy: float, rms: float, set_id: int | None = None, status: ~vallenae.io.datatypes.StatusFlags = <StatusFlags: 0>, threshold: float | None = None, signal_strength: float | None = None)[source]¶
Status data record in pridb (
SetType.STATUS).- __init__()¶
Methods
__init__()count(value, /)Return number of occurrences of value.
from_sql(row)Create
StatusRecordfrom SQL row.index(value[, start, stop])Return first index of value.
Attributes
Channel number
Energy (EN 1330-9) in eu (1e-14 V²s)
Parameter ID of table ae_params for ADC value conversion
RMS in volts
Unique identifier for data set in pridb
Signal strength in nVs (1e-9 Vs)
Status flags
Threshold amplitude in volts
Time in seconds
-
status:
StatusFlags¶ Status flags
- classmethod from_sql(row)[source]¶
Create
StatusRecordfrom SQL row.- Parameters:
- Return type:
- count(value, /)¶
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.