Skip to content

Commit e1a6a18

Browse files
committed
Added inputs&outputs descriptions
PR #622
1 parent 52721c2 commit e1a6a18

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nipype/algorithms/misc.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,15 @@ class FuzzyOverlapInputSpec(BaseInterfaceInputSpec):
445445
weighting = traits.Enum("none", "volume", "squared_vol", desc='""none": no class-overlap weighting is performed\
446446
"volume": computed class-overlaps are weighted by class volume\
447447
"squared_vol": computed class-overlaps are weighted by the squared volume of the class',usedefault=True)
448-
out_file = File("diff.nii", usedefault=True)
448+
out_file = File("diff.nii", desc="alternative name for resulting difference-map", usedefault=True)
449449

450450

451451
class FuzzyOverlapOutputSpec(TraitedSpec):
452-
jaccard = traits.Float()
453-
dice = traits.Float()
454-
diff_file = File(exists=True)
455-
class_ji = traits.List( traits.Float() )
456-
class_dsc = traits.List( traits.Float() )
452+
jaccard = traits.Float( desc="Fuzzy Jaccard Index (fJI), all the classes" )
453+
dice = traits.Float( desc="Fuzzy Dice Index (fDI), all the classes" )
454+
diff_file = File(exists=True, desc="resulting difference-map of all classes, using the chosen weighting" )
455+
class_fji = traits.List( traits.Float(), desc="Array containing the fJIs of each computed class" )
456+
class_fdi = traits.List( traits.Float(), desc="Array containing the fDIs of each computed class" )
457457

458458

459459
class FuzzyOverlap(BaseInterface):
@@ -539,8 +539,8 @@ def _list_outputs(self):
539539
outputs[method] = getattr(self, '_' + method)
540540
#outputs['volume_difference'] = self._volume
541541
outputs['diff_file'] = os.path.abspath(self.inputs.out_file)
542-
outputs['class_ji'] = np.array(self._jaccards).astype(float).tolist();
543-
outputs['class_dsc']= self._dices.astype(float).tolist();
542+
outputs['class_fji'] = np.array(self._jaccards).astype(float).tolist();
543+
outputs['class_fdi']= self._dices.astype(float).tolist();
544544
return outputs
545545

546546

0 commit comments

Comments
 (0)