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

GH2: get number of frames by looking at data.frameNumber

parent 59a4b0a3
No related branches found
No related tags found
1 merge request!101Hotfixes from BUD summer 2024
......@@ -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
......
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