Skip to content

Commit 7ca4664

Browse files
authored
Merge pull request #62 from yhuang43/master
fix geom for in-place image.framed.reorient()
2 parents 8de6c45 + 075f10b commit 7ca4664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfa/image/framed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def reorient(self, orientation, copy=True, inplace=False):
522522
voxsize=voxsize)
523523
return self.new(data, target_geom)
524524
else:
525-
self.geom.update(voxsize=voxsize, vox2world=affine)
525+
self.geom = ImageGeometry(shape=data.shape[:3], voxsize=voxsize, vox2world=affine)
526526
self.data = data
527527
return self
528528

0 commit comments

Comments
 (0)