Skip to content
Snippets Groups Projects
Commit 8031646c authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

BF: Fix in ImageWrapper r.e. complex images

parent 0d413664
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,14 @@ class ImageWrapper(notifier.Notifier):
# Internally, we calculate and store the
# data range for each volume/slice/vector
self.__volRanges = np.zeros((nvols, 2), dtype=np.float32)
#
# We use nan as a placeholder, so the
# dtype must be non-integral
dtype = self.__image.get_data_dtype()
if np.issubdtype(dtype, np.integer):
dtype = np.float32
self.__volRanges = np.zeros((nvols, 2),
dtype=dtype)
self.__coverage[ :] = np.nan
self.__volRanges[:] = np.nan
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment