nipype / pydra

Pydra Dataflow Engine
https://nipype.github.io/pydra/
Other
120 stars 59 forks source link

check_fields_input_spec should list all problems rather than just the first #610

Open effigies opened 1 year ago

effigies commented 1 year ago

Trying out https://github.com/nipype/pydra-fsl/pull/41 I called task.cmdline to see how formatting worked, and got a single AttributeError: in_file is mandatory, but no value provided. Setting in_file, I then get AttributeError: brightness_threshold is mandatory, but no value provided.

This may not be the ideal way of finding which are mandatory (incidentally, it's not mentioned in task.help()), but it would be helpful if people who do use it get a list of problems instead of a game of whack-a-mole.

djarecka commented 1 year ago

yes, you're right