From 57008f4034dfe7c5e5d1e85231d681d2cd1cf7ac Mon Sep 17 00:00:00 2001 From: David Hammer <dhammer@mailbox.org> Date: Fri, 12 Jul 2024 16:34:15 +0200 Subject: [PATCH] GH2: get number of frames by looking at data.frameNumber --- src/calng/corrections/Gotthard2Correction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calng/corrections/Gotthard2Correction.py b/src/calng/corrections/Gotthard2Correction.py index f8fa85bb..386aafc7 100644 --- a/src/calng/corrections/Gotthard2Correction.py +++ b/src/calng/corrections/Gotthard2Correction.py @@ -346,7 +346,7 @@ class Gotthard2Correction(base_correction.BaseCorrection): gain_data = np.asarray( data_hash.get("data.gain") ).astype(np.uint8, copy=False) - num_frames = image_data.shape[0] + num_frames = len(data_hash.get("data.frameNumber")) if self.unsafe_get("workarounds.overrideInputAxisOrder"): expected_shape = self.kernel_runner.expected_input_shape(num_frames) image_data.shape = expected_shape -- GitLab