Commit 3f59342e authored by Pierre Paleo's avatar Pierre Paleo
Browse files

WIP fix when only one image type

parent 293bc5b0
......@@ -305,7 +305,7 @@ class FlatFieldLoader:
"""
diffs = np.diff(image_keys == key)
indices = np.arange(diffs.size)[diffs]
assert indices.size % 2 == 0
assert indices.size % 2 == 0 # Fails when only 1 image
indices += 1
slices = []
for i in range(0, indices.size, 2):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment