diff --git a/nitransforms/base.py b/nitransforms/base.py index 26c0d475..fa297df0 100644 --- a/nitransforms/base.py +++ b/nitransforms/base.py @@ -259,6 +259,19 @@ def _to_hdf5(self, x5_root): """Serialize this object into the x5 file format.""" raise NotImplementedError + def apply(self, *args, **kwargs): + """Apply the transform to a dataset. + + Deprecated. Please use ``nitransforms.resampling.apply`` instead. + """ + warnings.warn( + "The `apply` method is deprecated. Please use `nitransforms.resampling.apply` instead.", + DeprecationWarning, + ) + from .resampling import apply + + return apply(self, *args, **kwargs) + def _as_homogeneous(xyz, dtype="float32", dim=3): """