Skip to content

Commit 949e50d

Browse files
author
Shoshana Berleant
committed
s/deprecation/user/
1 parent 9248c81 commit 949e50d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nipype/algorithms/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,6 @@ class TSNR(confounds.TSNR):
14261426
"""
14271427
def __init__(self, **inputs):
14281428
super(confounds.TSNR, self).__init__(**inputs)
1429-
warnings.warn(("This interface has been deprecated since 0.12.0,"
1429+
warnings.warn(("This interface has been moved since 0.12.0,"
14301430
" please use nipype.algorithms.confounds.TSNR"),
1431-
DeprecationWarning)
1431+
UserWarning)

nipype/algorithms/tests/test_tsnr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ def test_tsnr_withpoly3(self):
8787
})
8888

8989
@mock.patch('warnings.warn')
90-
def test_deprecation_warning(self, mock_warn):
90+
def test_warning(self, mock_warn):
9191
# run
9292
misc.TSNR(in_file=self.in_filenames['in_file'])
9393

9494
# assert
95-
mock_warn.assert_called_once_with(mock.ANY, DeprecationWarning)
95+
mock_warn.assert_called_once_with(mock.ANY, UserWarning)
9696

9797
def assert_expected_outputs_poly(self, tsnrresult, expected_ranges):
9898
assert_equal(os.path.basename(tsnrresult.outputs.detrended_file),

0 commit comments

Comments
 (0)