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

[GENFI] Patch conversion issue #923

Merged
merged 6 commits into from
May 23, 2023

Conversation

MatthieuJoulot
Copy link
Contributor

@MatthieuJoulot MatthieuJoulot commented May 22, 2023

This PR adds try/except to handle cases were dcm2niix conversion is peculiar, which we have found when converting the whole dataset: a few DWIs are not completely converted, only the imaginary or real part. Since the converter looks for a file with the same name as the name that is supposed to be given as an output by dcm2niix, it does not work because dcm2niix adds a suffix like _real or _imaginary in these cases.

  • add try/except
  • add function to delete _real and _imaginary files

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 questions on the context, and some small suggestions on the code.

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 !
A few small things but LGTM otherwise.

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 NicolasGensollen merged commit 88ff5d2 into aramis-lab:dev May 23, 2023
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.

2 participants