|
59 | 59 | # caveat 2: Note that the bytespervox you get is in str ( not an int) |
60 | 60 | _dtdefs = ( # code, conversion function, dtype, bytes per voxel |
61 | 61 | (0, 'uint8', '>u1', '1', 'MRI_UCHAR', np.uint8, np.dtype('u1'), np.dtype('>u1')), |
62 | | - (4, 'int16', '>i2', '2', 'MRI_SHORT', np.int16, np.dtype('i2'), np.dtype('>i2')), |
63 | 62 | (1, 'int32', '>i4', '4', 'MRI_INT', np.int32, np.dtype('i4'), np.dtype('>i4')), |
64 | 63 | (3, 'float', '>f4', '4', 'MRI_FLOAT', np.float32, np.dtype('f4'), np.dtype('>f4')), |
65 | | - (10, 'int16', '>i2', '2', 'MRI_SHORT', np.int16, np.dtype('i2'), np.dtype('>i2')), |
| 64 | + (4, 'int16', '>i2', '2', 'MRI_SHORT', np.int16, np.dtype('i2'), np.dtype('>i2')), |
| 65 | + (10, 'uint16', '>u2', '2', 'MRI_USHRT', np.uint16, np.dtype('u2'), np.dtype('>u2')), |
66 | 66 | ) |
67 | 67 |
|
68 | 68 | # make full code alias bank, including dtype column |
|
0 commit comments