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):
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 )
Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments