mirror of
https://github.com/paulscherrerinstitute/sf_daq_broker.git
synced 2026-05-12 13:55:36 +02:00
Output warning when PVs have no data in epics_writer
This commit is contained in:
@@ -91,6 +91,7 @@ class EpicsH5Writer(BsreadH5Writer):
|
||||
shape_data = [x["shape"] for x in channel_data["data"]]
|
||||
|
||||
if len(timestamp_data) == 0 or len(value_data) == 0:
|
||||
_logger.error("Data for PV %s does not exist.")
|
||||
timestamp_data = []
|
||||
value_data = [float("nan")]
|
||||
type_data = ["float64"]
|
||||
|
||||
Reference in New Issue
Block a user