We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a9fda commit 4bd928bCopy full SHA for 4bd928b
nitransforms/base.py
@@ -259,6 +259,19 @@ def _to_hdf5(self, x5_root):
259
"""Serialize this object into the x5 file format."""
260
raise NotImplementedError
261
262
+ def apply(self, *args, **kwargs):
263
+ """Apply the transform to a dataset.
264
+
265
+ Deprecated. Please use ``nitransforms.resampling.apply`` instead.
266
+ """
267
+ warnings.warn(
268
+ "The `apply` method is deprecated. Please use `nitransforms.resampling.apply` instead.",
269
+ DeprecationWarning,
270
+ )
271
+ from .resampling import apply
272
273
+ return apply(self, *args, **kwargs)
274
275
276
def _as_homogeneous(xyz, dtype="float32", dim=3):
277
"""
0 commit comments