TraRecord¶
- class vallenae.io.TraRecord(time, channel, param_id, pretrigger, threshold, samplerate, samples, data, status=<HitFlags: 0>, trai=None, rms=None, raw=False)[source]¶
Transient data record in tradb.
- __init__(time, channel, param_id, pretrigger, threshold, samplerate, samples, data, status=<HitFlags: 0>, trai=None, rms=None, raw=False)¶
Methods
__init__(time, channel, param_id, ...[, ...])from_sql(row, *[, raw])Create
TraRecordfrom SQL row.Attributes
data is stored as ADC values (int16)
RMS of the noise before the hit
Status flags
Transient recorder index (foreign key between pridb and tradb)
Time in seconds
Channel number
Parameter ID of table tr_params for ADC value conversion
Pretrigger samples
Threshold amplitude in volts
Samplerate in Hz
Number of samples
Transient signal in volts or ADC values if
raw= True