Skip to content

Commit ed92d4e

Browse files
authored
Merge pull request #216 from nipy/hotfix/warning-warn-argument
FIX: Wrong warning argument name ``level`` in ``warnings.warn``
2 parents a366f85 + ba6b416 commit ed92d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitransforms/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def apply(self, *args, **kwargs):
338338
message = (
339339
"The `apply` method is deprecated. Please use `nitransforms.resampling.apply` instead."
340340
)
341-
warnings.warn(message, DeprecationWarning, level=2)
341+
warnings.warn(message, DeprecationWarning, stacklevel=2)
342342
from .resampling import apply
343343

344344
return apply(self, *args, **kwargs)

0 commit comments

Comments
 (0)