diff --git a/src/calng/base_correction.py b/src/calng/base_correction.py index 42e9c95c812e84bdc6bb5953bead37bca0dab362..9a18a0186246ba81eaf2474eb3884dd32ea8e8d4 100644 --- a/src/calng/base_correction.py +++ b/src/calng/base_correction.py @@ -936,13 +936,12 @@ class BaseCorrection(PythonDevice): self._train_ratio_tracker.update(train_id) cell_table = data_hash.get(self._cell_table_path) if ( - (isinstance(cell_table, np.ndarray) and cell_table.size == 0) - or len(cell_table) == 0 - ): - self.log_status_warn( - "Empty cell table, DAQ probably not sending data." - ) + isinstance(cell_table, np.ndarray) + and (len(cell_table.shape) == 0 or cell_table.size == 0) + ) or len(cell_table) == 0: + self.log_status_warn("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