vallenae.io.TraRecord
- class vallenae.io.TraRecord(time: float, channel: int, param_id: int, pretrigger: int, threshold: float, samplerate: int, samples: int, data: ndarray, trai: int | None = None, rms: float | None = None, raw: bool = False)[source]
Transient data record in tradb.
Attributes
Channel number
Transient signal in volts or ADC values if
raw
= TrueParameter ID of table tr_params for ADC value conversion
Pretrigger samples
data
is stored as ADC values (int16)RMS of the noise before the hit
Samplerate in Hz
Number of samples
Threshold amplitude in volts
Time in seconds
Transient recorder index (foreign key between pridb and tradb)
Methods
__init__
()count
(value, /)Return number of occurrences of value.
from_sql
(row, *[, raw])Create
TraRecord
from SQL row.index
(value[, start, stop])Return first index of value.