Skip to content

Commit

Permalink
Merge pull request #4 from RSIP-Vision/elazarcoh-patch-1
Browse files Browse the repository at this point in the history
bugfix in medimg
  • Loading branch information
elazarcoh committed Nov 1, 2021
2 parents bb2538f + de05d9a commit 457c372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medio/medimg/medimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __getitem__(self, item):
"""
np_image = self.np_image[item]
start, stop, stride = explicit_inds(item, self.np_image.shape)
affine = Affine(self.metadata.Affine.copy())
affine = Affine(self.metadata.affine.copy())
affine.origin = affine.index2coord(start)
affine.spacing = affine.spacing * stride
metadata = MetaData(affine, self.metadata.orig_ornt, self.metadata.coord_sys)
Expand Down

0 comments on commit 457c372

Please sign in to comment.