Skip to content

Commit

Permalink
bugfix in medimg
Browse files Browse the repository at this point in the history
  • Loading branch information
elazarcoh committed Nov 1, 2021
1 parent bb2538f commit de05d9a
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 de05d9a

Please sign in to comment.