Trigger Realization¶
TriggerRealizations
are
generated once per SimulatedDrop
for each unique
TriggerModel
and contain information
about the synchronized simulated devices’ assumed time offsets.
- class TriggerRealization(num_offset_samples, sampling_rate)[source]¶
Bases:
HDFSerializable
Realization of a trigger model.
A trigger realization will contain the offset between a drop start and the waveform frames contained within the drop.
- Parameters:
- Raises:
ValueError – For num_offset_samples smaller than zero.
ValueError – For a sampling_rate smaller or equal to zero.
- compute_num_offset_samples(sampling_rate)[source]¶
Compute the number of realized offset samples for a custom sampling rate.
The result is rounded to the nearest smaller integer.
- Parameters:
sampling_rate (sampling_rate, float) – Sampling rate of intereset in Hz.
- Return type:
- Returns:
The number of trigger offset samples.
- Raises:
ValueError – For a sampling_rate smaller or equal to zero.