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

Better empty cell table detection

parent debbe2d5
No related branches found
No related tags found
1 merge request!12Snapshot: field test deployed version as of end of run 202201
......@@ -956,12 +956,13 @@ class BaseCorrection(PythonDevice):
return
train_id = metadata.getAttribute("timestamp", "tid")
cell_table = np.squeeze(data_hash.get(self._cell_table_path))
if len(cell_table.shape) == 0 and int(cell_table) == 0:
cell_table = data_hash.get(self._cell_table_path)
if cell_table.size == 0:
self.log_status_warn(
"cellId had 0 dimensions. DAQ may not be sending data."
"Empty cell table, DAQ probably not sending data."
)
return
cell_table = np.squeeze(cell_table)
# no more common reasons to skip input, so go to processing
if state is State.ON:
......
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