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 StatusRecord from SQL row.

index(value[, start, stop])

Return first index of value.

Attributes

channel

Channel number

energy

Energy (EN 1330-9) in eu (1e-14 V²s)

param_id

Parameter ID of table ae_params for ADC value conversion

rms

RMS in volts

set_id

Unique identifier for data set in pridb

signal_strength

Signal strength in nVs (1e-9 Vs)

status

Status flags

threshold

Threshold amplitude in volts

time

Time in seconds

time: float

Time in seconds

channel: int

Channel number

param_id: int

Parameter ID of table ae_params for ADC value conversion

energy: float

Energy (EN 1330-9) in eu (1e-14 V²s)

rms: float

RMS in volts

set_id: Optional[int]

Unique identifier for data set in pridb

status: StatusFlags

Status flags

threshold: Optional[float]

Threshold amplitude in volts

signal_strength: Optional[float]

Signal strength in nVs (1e-9 Vs)

classmethod from_sql(row)[source]

Create StatusRecord from SQL row.

Parameters:

row (Dict[str, Any]) – Dict of column names and values

Return type:

StatusRecord

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.