From ba6b416c14be8c37ba8d0c37436eda5171bba39b Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Wed, 24 Jul 2024 00:45:03 +0200 Subject: [PATCH] hotfix: wrong warning argument name ``level`` --- nitransforms/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitransforms/base.py b/nitransforms/base.py index 9c8310ab..81ed1a5e 100644 --- a/nitransforms/base.py +++ b/nitransforms/base.py @@ -338,7 +338,7 @@ def apply(self, *args, **kwargs): message = ( "The `apply` method is deprecated. Please use `nitransforms.resampling.apply` instead." ) - warnings.warn(message, DeprecationWarning, level=2) + warnings.warn(message, DeprecationWarning, stacklevel=2) from .resampling import apply return apply(self, *args, **kwargs)