Skip to content

Commit

Permalink
RF: Reset zooms to 1 on reshape
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 28, 2017
1 parent a0766f9 commit 5241b1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nibabel/freesurfer/mghformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def set_data_shape(self, shape):
if len(shape) > 4:
raise ValueError("Shape may be at most 4 dimensional")
self._structarr['dims'] = shape + (1,) * (4 - len(shape))
self._structarr['voxelsize'] = 1
self._structarr['tr'] = 1

def get_data_bytespervox(self):
''' Get the number of bytes per voxel of the data
Expand Down

0 comments on commit 5241b1b

Please sign in to comment.