File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ class Similarity(BaseInterface):
529
529
530
530
Example
531
531
-------
532
- >>> from nipype.interfaces.nipy.utils import Similarity
532
+ >>> from nipype.algorithms.metrics import Similarity
533
533
>>> similarity = Similarity()
534
534
>>> similarity.inputs.volume1 = 'rc1s1.nii'
535
535
>>> similarity.inputs.volume2 = 'rc1s2.nii'
Original file line number Diff line number Diff line change 26
26
27
27
28
28
class SimilarityInputSpec (BaseInterfaceInputSpec ):
29
-
30
29
volume1 = File (exists = True , desc = "3D volume" , mandatory = True )
31
30
volume2 = File (exists = True , desc = "3D volume" , mandatory = True )
32
31
mask1 = File (exists = True , desc = "3D volume" )
@@ -44,7 +43,6 @@ class SimilarityInputSpec(BaseInterfaceInputSpec):
44
43
45
44
46
45
class SimilarityOutputSpec (TraitedSpec ):
47
-
48
46
similarity = traits .Float (desc = "Similarity between volume 1 and 2" )
49
47
50
48
@@ -72,7 +70,7 @@ def __init__(self, **inputs):
72
70
warnings .warn (("This interface is deprecated since 0.10.0."
73
71
" Please use nipype.algorithms.metrics.Similarity" ),
74
72
DeprecationWarning )
75
- super (BaseInterface ,self ).__init__ (** inputs )
73
+ super (Similarity ,self ).__init__ (** inputs )
76
74
77
75
def _run_interface (self , runtime ):
78
76
You can’t perform that action at this time.
0 commit comments