Commit 86e9cbb8 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: If DTIFitTensor image objects don't have a nvals property

parent 4e2ff96e
......@@ -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 image.nvals > 1:
if vecImage.nvals > 1:
return data
# calculate lengths
......
......@@ -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 image.nvals > 1:
if vecImage.nvals > 1:
return data
# make absolute, and scale to unit
......
Markdown is supported
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