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