Skip to content

Commit ee3bfd2

Browse files
committed
load_inputs_from_json now overwrites inputs
1 parent a9feb80 commit ee3bfd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def load_inputs_from_json(self, json_file):
11611161
inputs_dict = json.load(fhandle)
11621162

11631163
for key, val in list(inputs_dict.items()):
1164-
if not isdefined(getattr(self.inputs, key, Undefined)):
1164+
if not hasattr(self.inputs, key):
11651165
setattr(self.inputs, key, val)
11661166

11671167
def save_inputs_to_json(self, json_file):

0 commit comments

Comments
 (0)