From 5b1736bf2bbda7c737e8c7a7ec8806dd7510a1ad Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Fri, 17 May 2024 11:45:54 -0400 Subject: [PATCH] Update nitransforms/resampling.py --- nitransforms/resampling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nitransforms/resampling.py b/nitransforms/resampling.py index e1ac1542..9de0d2d6 100644 --- a/nitransforms/resampling.py +++ b/nitransforms/resampling.py @@ -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(