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

Delete node dwi #766

Merged
merged 23 commits into from
Nov 4, 2022
Merged

Conversation

MatthieuJoulot
Copy link
Contributor

The preprocessing using T1 for dwi currently has a problem: the amount of temporary data generated is way too important.
Thus, this PR aims at reducing this amount of temporary data, by suppressing it during the processing (when it is not useful anymore)

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MatthieuJoulot !
Some comments as I was doing a first pass on it.

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MatthieuJoulot !
I still have some small concerns about the current implementation, especially around the marker parameter which hides some complexity behind a not very informative name.
I think we can make the code a bit more clear by passing to your delete function only what it needs (see comments below).

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MatthieuJoulot !
I think this is much easier to understand now. 👍
I made some small suggestions to improve the documentation.
As a final step, I think we should add some unit tests for the two new functions that you have implemented (extract_sub_ses_folder_names for which you already have an example so should be straightforward, and delete_temp_dirs)

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MatthieuJoulot !
The test looks good, I just think we can factorize a bit and use tmp_path (see comments below). Could you add a simple test for extract_sub_ses_folder_name too ?

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing my points @MatthieuJoulot !
This LGTM minus the current test failure due to the new parameter introduced in this PR (see my message below).

sdc = epi_pipeline(name="SusceptibilityDistortionCorrection")
sdc = epi_pipeline(
self.base_dir,
self.parameters["delete_cache"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now this line is breaking the instantiation tests (KeyError for delete_cache). I think we should add a default setting in check_pipeline_parameters (line 47), and maybe set delete_cache in the test.

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @MatthieuJoulot ! 👍

@NicolasGensollen
Copy link
Member

@ghisvail let me know if you're planning to review this one when you're back (you're listed in the reviewers). Otherwise I'll merge it.

@ghisvail
Copy link
Collaborator

ghisvail commented Nov 4, 2022

@ghisvail let me know if you're planning to review this one when you're back (you're listed in the reviewers). Otherwise I'll merge it.

Go for it

@NicolasGensollen
Copy link
Member

Merging then !

@NicolasGensollen NicolasGensollen merged commit 63108a9 into aramis-lab:dev Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants