mirror of
https://github.com/paulscherrerinstitute/sf_daq_broker.git
synced 2026-08-31 09:20:44 +02:00
use numpy
This commit is contained in:
@@ -83,8 +83,8 @@ def check_data_consistency(start_pulse_id, stop_pulse_id, rate_multiplicator, ch
|
||||
|
||||
start_time = time()
|
||||
|
||||
expected_pulse_id = [p for p in range(start_pulse_id, stop_pulse_id + 1) if p % rate_multiplicator == 0]
|
||||
expected_pulse_id = numpy.array(expected_pulse_id)
|
||||
expected_pulse_id = numpy.arange(start_pulse_id, stop_pulse_id + 1)
|
||||
expected_pulse_id = expected_pulse_id[expected_pulse_id % rate_multiplicator == 0]
|
||||
n_expected_pulse_id = len(expected_pulse_id)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user