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 5241b1bCopy full SHA for 5241b1b
nibabel/freesurfer/mghformat.py
@@ -264,6 +264,8 @@ 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
+ self._structarr['tr'] = 1
269
270
def get_data_bytespervox(self):
271
''' Get the number of bytes per voxel of the data
0 commit comments