Skip to content
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

Fix triggers for gradcorrect and archives #211

Merged
merged 4 commits into from
Jan 3, 2024
Merged

Fix triggers for gradcorrect and archives #211

merged 4 commits into from
Jan 3, 2024

Conversation

kaitj
Copy link
Collaborator

@kaitj kaitj commented Jan 3, 2024

The logic was not triggering gradcorrect and archiving of datasets. This PR fixes this and also updates the help message for each CLI task.

kaitj added 3 commits January 3, 2024 11:59
Jobs that passed keyword arguments were failing (e.g. subject_labels={1,
2, 3}) as it wouldn't know how to handle these in the decorator. This
just adds **kwargs to allow for passing of keyword arguments.
There was a bug with the previous implementation, where if a study had
a custom ria url (which is any study valid study), gradcorrect would not
be triggered (for 7T studies). This commit / PR fixes this bug such that
it gradcorrect will be triggered if the study exists or if there is a
custom ria url.
Change logic such that archiving is not triggered if study cannot be
found (i.e. `study.custom_ria_url is None`)
@kaitj kaitj added the maintenance Updates or improvements that do not change functionality of the code label Jan 3, 2024
@kaitj kaitj self-assigned this Jan 3, 2024
@kaitj kaitj merged commit 58422d0 into main Jan 3, 2024
2 checks passed
@kaitj kaitj deleted the maint/gradcorrect branch January 3, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Updates or improvements that do not change functionality of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant