mirror of
https://github.com/paulscherrerinstitute/sf_daq_broker.git
synced 2026-08-31 10:20:42 +02:00
Invert condition
This commit is contained in:
@@ -20,7 +20,7 @@ def write_epics_pvs(output_file, start_pulse_id, stop_pulse_id, metadata, epics_
|
||||
data = get_data(epics_pvs, start=start_date, stop=stop_date)
|
||||
# TODO: Merge metadata to data.
|
||||
|
||||
if len(data) < 1:
|
||||
if len(data) > 0:
|
||||
logger.info("Persist data to hdf5 file")
|
||||
data_api.to_hdf5(data, output_file, overwrite=True, compression=None, shuffle=False)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user