Output warning when PVs have no data in epics_writer

This commit is contained in:
2021-02-01 18:30:30 +01:00
parent 0d29d1a6ff
commit f151dcc394
+1
View File
@@ -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"]