Skip to content

Commit

Permalink
fix: the original locations should be an ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed May 16, 2024
1 parent ce08e37 commit e1165a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nitransforms/nonlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def map(self, x, inverse=False):

if inverse is True:
raise NotImplementedError

x = np.array(x)
ijk = self.reference.index(x)
indexes = np.round(ijk).astype("int")

Expand Down

0 comments on commit e1165a8

Please sign in to comment.