Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
3f59342e
Commit
3f59342e
authored
Aug 31, 2020
by
Pierre Paleo
Browse files
WIP fix when only one image type
parent
293bc5b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/resources/dataset_analyzer.py
View file @
3f59342e
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment