Skip to content

Commit 622dfa6

Browse files
committed
FIX: More robust floating point dtype check
1 parent 0a29f45 commit 622dfa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/minc1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _normalize(self, data, sliceobj=()):
173173
applied to `data`
174174
"""
175175
ddt = self.get_data_dtype()
176-
if ddt.type in np.sctypes['float']:
176+
if np.issubdtype(ddt.type, np.floating):
177177
return data
178178
image_max = self._image_max
179179
image_min = self._image_min

0 commit comments

Comments
 (0)