Skip to content

Commit

Permalink
Merge pull request #216 from nipy/hotfix/warning-warn-argument
Browse files Browse the repository at this point in the history
FIX: Wrong warning argument name ``level`` in ``warnings.warn``
  • Loading branch information
effigies authored Jul 23, 2024
2 parents a366f85 + ba6b416 commit ed92d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nitransforms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed92d4e

Please sign in to comment.