-
Notifications
You must be signed in to change notification settings - Fork 82
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
[ENH] Allow the T1-Linear pipeline to go over (subject, session) couples that do not have data #1285
[ENH] Allow the T1-Linear pipeline to go over (subject, session) couples that do not have data #1285
Conversation
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.
Thanks @AliceJoubert !
I had a quick look and I think the proposed solution looks good.
We can discuss this at some point if you have some questions in mind that I missed here.
Thnaks for the review @NicolasGensollen ! My biggest question was related to the function |
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.
Thanks @AliceJoubert !
I made a quick pass with small suggestions, but will need to test it a bit more.
clinica/pipelines/anatomical/freesurfer/longitudinal/correction/pipeline.py
Outdated
Show resolved
Hide resolved
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.
Thanks @AliceJoubert !
The code LGTM and I've run some of the non regression tests without errors.
Were you able to run some tests on your end ?
Are you still working on the PR or is it ready ?
Thanks for the review @NicolasGensollen ! I am not working on it anymore technically but I did not test more than t1-linear and non-regression tests. Maybe it is still lacking some tests with other pipelines... |
I did a few others as well without issues. |
…les that do not have data (aramis-lab#1285) * First pass on issue * Make it work * Add todos for more complex refactoring * Testing wip * Proposition 2 * Touch clinica_list_of_files_reader * Change to warning * Changes upon suggestions * add todos * Changes upon suggestions * WIP generalization * WIP 2 * Fix clinica_list_of_files_reader * Generalization/Replacement for clinica_file_reader * Add forgotten condition * Changes upon suggestions aramis-lab#1
TO DISCUSS : change of a logic for
clinica_file_reader
but alsoclinica_list_of_files_reader
(DWI pipelines)Currently
clinica_file_reader
returns a list of files and a list errors messages/strings. As such, complicated to retrieve what sub/ses is problematic + most of the time these are not used since function called like sofiles, _ = clinica_file_reader(...)
. Otherwise, used to stop the processing when a subject/session is missing files for ex. : a bit critical.-> list of messages replaced by list of tuples with the actual problematic sessions
-> no more breaking when subject/session does not have files, they are removed from the lists of sub/sess
-> raise replaced by cprint. User informed that some files won't be processed instead so removed parameter/part
-> clinica_list_of_files impacted
Currently
clinica_list_of_files_reader
usesclinica_files_reader
to retrieve files by batches. Does not consider a list of files if there is any errors in it instead of removing the error.-> not considering "errors" (file not found)
TO DO :
From :
to :