Skip to content

Commit

Permalink
Update nitransforms/resampling.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban authored May 17, 2024
1 parent bfe592d commit 5b1736b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nitransforms/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def apply(
if data.ndim < transform.ndim:
data = data[..., np.newaxis]

# For model-based nonlinear transforms, generate the corresponding dense field
if hasattr(transform, "to_field") and callable(transform.to_field):
targets = ImageGrid(spatialimage).index(
_as_homogeneous(
Expand Down

0 comments on commit 5b1736b

Please sign in to comment.