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 e32e8c8 commit f09f3c2Copy full SHA for f09f3c2
nibabel/freesurfer/mghformat.py
@@ -264,6 +264,7 @@ def set_data_shape(self, shape):
264
if len(shape) > 4:
265
raise ValueError("Shape may be at most 4 dimensional")
266
self._structarr['dims'] = shape + (1,) * (4 - len(shape))
267
+ self._structarr['voxelsize'] = 1
268
269
def get_data_bytespervox(self):
270
''' Get the number of bytes per voxel of the data
0 commit comments