@@ -64,10 +64,10 @@ class PickAtlasOutputSpec(TraitedSpec):
64
64
65
65
66
66
class PickAtlas (BaseInterface ):
67
- '''
68
- Returns ROI masks given an atlas and a list of labels. Supports dilation
67
+ """Returns ROI masks given an atlas and a list of labels. Supports dilation
69
68
and left right masking (assuming the atlas is properly aligned).
70
- '''
69
+ """
70
+
71
71
input_spec = PickAtlasInputSpec
72
72
output_spec = PickAtlasOutputSpec
73
73
@@ -132,6 +132,8 @@ class SimpleThresholdOutputSpec(TraitedSpec):
132
132
133
133
134
134
class SimpleThreshold (BaseInterface ):
135
+ """Applies a threshold to input volumes
136
+ """
135
137
input_spec = SimpleThresholdInputSpec
136
138
output_spec = SimpleThresholdOutputSpec
137
139
@@ -182,10 +184,9 @@ class ModifyAffineOutputSpec(TraitedSpec):
182
184
183
185
184
186
class ModifyAffine (BaseInterface ):
185
- '''
186
- Left multiplies the affine matrix with a specified values. Saves the volume
187
+ """Left multiplies the affine matrix with a specified values. Saves the volume
187
188
as a nifti file.
188
- '''
189
+ """
189
190
input_spec = ModifyAffineInputSpec
190
191
output_spec = ModifyAffineOutputSpec
191
192
@@ -225,6 +226,8 @@ class CreateNiftiOutputSpec(TraitedSpec):
225
226
226
227
227
228
class CreateNifti (BaseInterface ):
229
+ """Creates a nifti volume
230
+ """
228
231
input_spec = CreateNiftiInputSpec
229
232
output_spec = CreateNiftiOutputSpec
230
233
@@ -344,8 +347,7 @@ class GunzipOutputSpec(TraitedSpec):
344
347
345
348
346
349
class Gunzip (BaseInterface ):
347
- """
348
-
350
+ """Gunzip wrapper
349
351
"""
350
352
input_spec = GunzipInputSpec
351
353
output_spec = GunzipOutputSpec
@@ -409,8 +411,7 @@ class Matlab2CSVOutputSpec(TraitedSpec):
409
411
410
412
411
413
class Matlab2CSV (BaseInterface ):
412
- """
413
- Simple interface to save the components of a MATLAB .mat file as a text
414
+ """Simple interface to save the components of a MATLAB .mat file as a text
414
415
file with comma-separated values (CSVs).
415
416
416
417
CSV files are easily loaded in R, for use in statistical processing.
@@ -602,8 +603,7 @@ class MergeCSVFilesOutputSpec(TraitedSpec):
602
603
603
604
604
605
class MergeCSVFiles (BaseInterface ):
605
- """
606
- This interface is designed to facilitate data loading in the R environment.
606
+ """This interface is designed to facilitate data loading in the R environment.
607
607
It takes input CSV files and merges them into a single CSV file.
608
608
If provided, it will also incorporate column heading names into the
609
609
resulting CSV file.
@@ -738,8 +738,7 @@ class AddCSVColumnOutputSpec(TraitedSpec):
738
738
739
739
740
740
class AddCSVColumn (BaseInterface ):
741
- """
742
- Short interface to add an extra column and field to a text file
741
+ """Short interface to add an extra column and field to a text file
743
742
744
743
Example
745
744
-------
@@ -799,8 +798,7 @@ class CalculateNormalizedMomentsOutputSpec(TraitedSpec):
799
798
800
799
801
800
class CalculateNormalizedMoments (BaseInterface ):
802
- """
803
- Calculates moments of timeseries.
801
+ """Calculates moments of timeseries.
804
802
805
803
Example
806
804
-------
@@ -827,8 +825,7 @@ def _list_outputs(self):
827
825
828
826
829
827
def calc_moments (timeseries_file , moment ):
830
- """
831
- Returns nth moment (3 for skewness, 4 for kurtosis) of timeseries
828
+ """Returns nth moment (3 for skewness, 4 for kurtosis) of timeseries
832
829
(list of values; one per timeseries).
833
830
834
831
Keyword arguments:
@@ -844,13 +841,23 @@ def calc_moments(timeseries_file, moment):
844
841
845
842
# Deprecated interfaces ---------------------------------------------------------
846
843
class Distance ( nam .Distance ):
844
+ """Calculates distance between two volumes.
845
+
846
+ .. deprecated:: 0.10.0
847
+ Use :py:class:`nipype.algorithms.metrics.Distance` instead.
848
+ """
847
849
def __init__ (self , ** inputs ):
848
850
super (nam .Distance , self ).__init__ (** inputs )
849
851
warnings .warn (("This interface has been deprecated since 0.10.0,"
850
852
" please use nipype.algorithms.metrics.Distance" ),
851
853
DeprecationWarning )
852
854
853
855
class Overlap ( nam .Overlap ):
856
+ """Calculates various overlap measures between two maps.
857
+
858
+ .. deprecated:: 0.10.0
859
+ Use :py:class:`nipype.algorithms.metrics.Overlap` instead.
860
+ """
854
861
def __init__ (self , ** inputs ):
855
862
super (nam .Overlap , self ).__init__ (** inputs )
856
863
warnings .warn (("This interface has been deprecated since 0.10.0,"
@@ -859,6 +866,12 @@ def __init__(self, **inputs):
859
866
860
867
861
868
class FuzzyOverlap ( nam .FuzzyOverlap ):
869
+ """Calculates various overlap measures between two maps, using a fuzzy
870
+ definition.
871
+
872
+ .. deprecated:: 0.10.0
873
+ Use :py:class:`nipype.algorithms.metrics.FuzzyOverlap` instead.
874
+ """
862
875
def __init__ (self , ** inputs ):
863
876
super (nam .FuzzyOverlap , self ).__init__ (** inputs )
864
877
warnings .warn (("This interface has been deprecated since 0.10.0,"
0 commit comments