We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c30a84 commit 3639711Copy full SHA for 3639711
nibabel/casting.py
@@ -25,10 +25,10 @@ class CastingError(Exception):
25
26
# np.sctypes is deprecated in numpy 2.0 and np.core.sctypes should not be used instead.
27
sctypes = {
28
- 'int': list(set([np.byte, np.short, np.intc, np.longlong])),
29
- 'uint': list(set([np.ubyte, np.ushort, np.uintc, np.ulonglong])),
30
- 'float': list(set([np.half, np.single, np.double, np.longdouble])),
31
- 'complex': list(set([np.csingle, np.cdouble, np.clongdouble])),
+ 'int': [np.int8, np.int16, np.int32, np.int64],
+ 'uint': [np.uint8, np.uint16, np.uint32, np.uint64],
+ 'float': [np.float16, np.float32, np.float64, np.float128],
+ 'complex': [np.complex64, np.complex128, np.complex256],
32
'others': [bool, object, bytes, str, np.void],
33
}
34
0 commit comments