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
FSL
fslpy
Commits
ca3becf1
Commit
ca3becf1
authored
Aug 27, 2017
by
Paul McCarthy
🚵
Browse files
Silly edge case fix in image wrapper - for images where all dimensions have
length 1
parent
875bab98
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/imagewrapper.py
View file @
ca3becf1
...
...
@@ -187,6 +187,11 @@ class ImageWrapper(notifier.Notifier):
if
d
==
1
:
self
.
__numRealDims
-=
1
else
:
break
# Degenerate case - if every
# dimension has length 1
if
self
.
__numRealDims
==
0
:
self
.
__numRealDims
=
len
(
image
.
shape
)
# And save the number of
# 'padding' dimensions too.
self
.
__numPadDims
=
len
(
image
.
shape
)
-
self
.
__numRealDims
...
...
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