Skip to content

Commit 69e09f4

Browse files
committed
Added undefined value
1 parent cb124a4 commit 69e09f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,9 @@ def _list_outputs(self):
18901890

18911891
out_dict = dict()
18921892
for name in self._input_names:
1893-
out_dict[name] = getattr(self.inputs, name)
1893+
val = getattr(self.inputs, name)
1894+
val = val if isdefined(val) else 'undefined'
1895+
out_dict[name] = val
18941896

18951897
with open(out_file, 'w') as f:
18961898
json.dump(out_dict, f)

0 commit comments

Comments
 (0)