We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a79080 commit a2da63cCopy full SHA for a2da63c
pydra/engine/specs.py
@@ -164,7 +164,8 @@ def check_fields_input_spec(self):
164
if getattr(self, fld.name) is attr.NOTHING:
165
if mdata.get("mandatory"):
166
# checking if the mandatory field is provided elsewhere in the xor list
167
- alreday_populated = [getattr(self, el) for el in mdata["xor"] if (getattr(self, el) is not attr.NOTHING)]
+ in_exclusion_list = mdata.get("xor") is not None
168
+ alreday_populated = in_exclusion_list and [getattr(self, el) for el in mdata["xor"] if (getattr(self, el) is not attr.NOTHING)]
169
if alreday_populated: #another input satisfies mandatory attribute via xor condition
170
continue
171
else:
0 commit comments