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 a0766f9 commit 2b4c7cdCopy full SHA for 2b4c7cd
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