Skip to content

Commit dd17469

Browse files
bthyreaueffigies
andauthored
Update nibabel/freesurfer/mghformat.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent d085556 commit dd17469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/freesurfer/mghformat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
# caveat 2: Note that the bytespervox you get is in str ( not an int)
6060
_dtdefs = ( # code, conversion function, dtype, bytes per voxel
6161
(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')),
6362
(1, 'int32', '>i4', '4', 'MRI_INT', np.int32, np.dtype('i4'), np.dtype('>i4')),
6463
(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')),
6666
)
6767

6868
# make full code alias bank, including dtype column

0 commit comments

Comments
 (0)