File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1426,6 +1426,6 @@ class TSNR(confounds.TSNR):
1426
1426
"""
1427
1427
def __init__ (self , ** inputs ):
1428
1428
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,"
1430
1430
" please use nipype.algorithms.confounds.TSNR" ),
1431
- DeprecationWarning )
1431
+ UserWarning )
Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ def test_tsnr_withpoly3(self):
87
87
})
88
88
89
89
@mock .patch ('warnings.warn' )
90
- def test_deprecation_warning (self , mock_warn ):
90
+ def test_warning (self , mock_warn ):
91
91
# run
92
92
misc .TSNR (in_file = self .in_filenames ['in_file' ])
93
93
94
94
# assert
95
- mock_warn .assert_called_once_with (mock .ANY , DeprecationWarning )
95
+ mock_warn .assert_called_once_with (mock .ANY , UserWarning )
96
96
97
97
def assert_expected_outputs_poly (self , tsnrresult , expected_ranges ):
98
98
assert_equal (os .path .basename (tsnrresult .outputs .detrended_file ),
You can’t perform that action at this time.
0 commit comments