StatusRecord

class vallenae.io.StatusRecord(time, channel, param_id, energy, rms, set_id=None, status=<StatusFlags: 0>, threshold=None, signal_strength=None)[source]

Status data record in pridb (SetType.STATUS).

__init__(time, channel, param_id, energy, rms, set_id=None, status=<StatusFlags: 0>, threshold=None, signal_strength=None)

Methods

__init__(time, channel, param_id, energy, rms)

from_sql(row)

Create StatusRecord from SQL row.

Attributes

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

channel

Channel number

param_id

Parameter ID of table ae_params for ADC value conversion

energy

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

rms

RMS in volts

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: int | None = None

Unique identifier for data set in pridb

status: StatusFlags = 0

Status flags

threshold: float | None = None

Threshold amplitude in volts

signal_strength: float | None = None

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