Skip to content

Commit 98eb832

Browse files
committed
Added version 0.10.0 to all DeprecationWarnings
1 parent dc24afc commit 98eb832

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

nipype/algorithms/misc.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,15 +846,21 @@ def calc_moments(timeseries_file, moment):
846846
class Distance( nam.Distance ):
847847
def __init__(self, **inputs):
848848
super(nam.Distance, self).__init__(**inputs)
849-
warnings.warn("This interface has been moved from misc to metrics", DeprecationWarning)
849+
warnings.warn(("This interface has been deprecated since 0.10.0,"
850+
" please use nipype.algorithms.metrics.Distance"),
851+
DeprecationWarning)
850852

851853
class Overlap( nam.Overlap ):
852854
def __init__(self, **inputs):
853855
super(nam.Overlap, self).__init__(**inputs)
854-
warnings.warn("This interface has been moved from misc to metrics", DeprecationWarning)
856+
warnings.warn(("This interface has been deprecated since 0.10.0,"
857+
" please use nipype.algorithms.metrics.Overlap"),
858+
DeprecationWarning)
855859

856860

857861
class FuzzyOverlap( nam.FuzzyOverlap ):
858862
def __init__(self, **inputs):
859863
super(nam.FuzzyOverlap, self).__init__(**inputs)
860-
warnings.warn("This interface has been moved from misc to metrics", DeprecationWarning)
864+
warnings.warn(("This interface has been deprecated since 0.10.0,"
865+
" please use nipype.algorithms.metrics.FuzzyOverlap"),
866+
DeprecationWarning)

0 commit comments

Comments
 (0)