diff --git a/src/calng/base_correction.py b/src/calng/base_correction.py index 8de51c95a2ee069446f86fd926cee7732cee92ac..02cf87f261e8d308e43a07f4b29d0be9c7b6e6a1 100644 --- a/src/calng/base_correction.py +++ b/src/calng/base_correction.py @@ -939,7 +939,7 @@ class BaseCorrection(PythonDevice): self.log_status_warn("Empty cell table, DAQ probably not sending data.") return - cell_table = np.squeeze(cell_table) + cell_table = np.ravel(cell_table) # no more common reasons to skip input, so go to processing if state is State.ON: diff --git a/src/calng/utils.py b/src/calng/utils.py index a623731de3faf347817b816e74f295a7ce7f6bf2..0e560b053536736a6663c4bb44d313229371f4f0 100644 --- a/src/calng/utils.py +++ b/src/calng/utils.py @@ -149,14 +149,6 @@ def ceil_div(num, denom): return (num + denom - 1) // denom -def shape_after_transpose(input_shape, transpose_pattern, squeeze=True): - if squeeze: - input_shape = tuple(dim for dim in input_shape if dim > 1) - if transpose_pattern is None: - return input_shape - return tuple(np.array(input_shape)[list(transpose_pattern)].tolist()) - - class RepeatingTimer: """A timer which will call callback every interval seconds"""