Skip to content

Commit 6e2fcab

Browse files
committed
fix: remove duplicate of mandatory parameters from optional parameters
1 parent aadb26b commit 6e2fcab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,12 +780,13 @@ def _inputs_help(cls):
780780

781781
manhelpstr = ['', '\t[Mandatory]']
782782
mandatory_items = inputs.traits(mandatory=True)
783+
print mandatory_items
783784
for name, spec in sorted(mandatory_items.items()):
784785
manhelpstr += cls._get_trait_desc(inputs, name, spec)
785786

786787
opthelpstr = ['', '\t[Optional]']
787788
for name, spec in sorted(inputs.traits(transient=None).items()):
788-
if spec in mandatory_items:
789+
if name in mandatory_items:
789790
continue
790791
opthelpstr += cls._get_trait_desc(inputs, name, spec)
791792

0 commit comments

Comments
 (0)