We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 832f584 commit 8870068Copy full SHA for 8870068
nibabel/freesurfer/mghformat.py
@@ -549,7 +549,7 @@ def _affine2header(self):
549
# for more information, go through save_mgh.m in FreeSurfer dist
550
voxelsize = voxel_sizes(self._affine)
551
Mdc = self._affine[:3, :3] / voxelsize
552
- c_ras = self._affine.dot(np.vstack((shape / 2, [1])))[:3]
+ c_ras = self._affine.dot(np.vstack((shape / 2.0, [1])))[:3]
553
554
# Assign after we've had a chance to raise exceptions
555
hdr['voxelsize'] = voxelsize
0 commit comments