-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of proposed syntax changes #768
base: master
Are you sure you want to change the base?
Conversation
pydra/design/base.py
Outdated
List of allowed values for the field. | ||
xor: Sequence[str | None], optional | ||
Names of args that are exclusive mutually exclusive, which must include | ||
the name of the current field. If this list includes None, then none of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
including the current field was not the case in nipype or the previous version of pydra i believe. reducing this kind of boilerplate would be helpful, and also if xor
is commutative without specification (a
xor b
implies b
xor a
and should not have to be specified in both places - just one should do the other should be computed). also any checks to make sure xor combinations are valid or invalid (e.g. a
xor b
, b
xor c
, c
xor a
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking it would be better as an argument to the shell.define
decorator/function, so it would only need to be defined once, and it is really a "task-level" attribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so a list of lists? i.e. there could be multiple different xor
s in a task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, maybe list[str] | list[list[str]] could be acceptable inputs
…xture (from "debug")
…dules starting with "_"
…ching to state indices
Types of changes
Summary
Implements proposed syntax changes in #692
Test modules (to fix)
Checklist