Skip to content
Snippets Groups Projects
Commit 30ae788c authored by David Hammer's avatar David Hammer
Browse files

Handle cell table being empty bytearray...

parent ba181ccf
No related branches found
No related tags found
1 merge request!12Snapshot: field test deployed version as of end of run 202201
...@@ -957,7 +957,10 @@ class BaseCorrection(PythonDevice): ...@@ -957,7 +957,10 @@ class BaseCorrection(PythonDevice):
train_id = metadata.getAttribute("timestamp", "tid") train_id = metadata.getAttribute("timestamp", "tid")
cell_table = data_hash.get(self._cell_table_path) cell_table = data_hash.get(self._cell_table_path)
if cell_table.size == 0: if (
(isinstance(cell_table, np.ndarray) and cell_table.size == 0)
or len(cell_table) == 0
):
self.log_status_warn( self.log_status_warn(
"Empty cell table, DAQ probably not sending data." "Empty cell table, DAQ probably not sending data."
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment