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
fsleyes
fsleyes
Commits
86e9cbb8
Commit
86e9cbb8
authored
Sep 13, 2021
by
Paul McCarthy
🚵
Browse files
BF: If DTIFitTensor image objects don't have a nvals property
parent
4e2ff96e
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsleyes/gl/gllinevector.py
View file @
86e9cbb8
...
...
@@ -80,7 +80,7 @@ class GLLineVector(glvector.GLVector):
# Vector images stored as RGB24 data
# type are assumed to map from [0, 255]
# to [-1, 1], so cannot be normalised
if
i
mage
.
nvals
>
1
:
if
vecI
mage
.
nvals
>
1
:
return
data
# calculate lengths
...
...
fsleyes/gl/glrgbvector.py
View file @
86e9cbb8
...
...
@@ -86,7 +86,7 @@ class GLRGBVector(glvector.GLVector):
# Vector images stored as RGB24 data
# type are assumed to map from [0, 255]
# to [-1, 1], so cannot be normalised
if
i
mage
.
nvals
>
1
:
if
vecI
mage
.
nvals
>
1
:
return
data
# make absolute, and scale to unit
...
...
Write
Preview
Markdown
is supported
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