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

ENH: Fieldmap selection #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richardbeare
Copy link

The indenting in the previous version was strange, and I think
testing for success may have been wrong in some cases, in that
warnings about failure could be issued before the search was
complete.

dcm2bids doesn't create lists for the IntendedFor field when
a single target is provided. This breaks the original tests,
which used a ' '.join syntax and thus created strings
separated by spaces when provided with a string. This
meant the correct field map was never found.

I have forced the result into a list if it isn't already, adjusted the
indenting and modified the failure test.

The join option could be used because it allows paths without
a session field to be matched as substrings.

Recent versions of dcm2bids include the session field.

reliable.

The indenting in the previous version was strange, and I think
testing for success may have been wrong in some cases, in that
warnings about failure could be issued before the search was
complete.

dcm2bids doesn't create lists for the IntendedFor field when
a single target is provided. This breaks the original tests,
which used a ' '.join syntax and thus created strings
separated by spaces when provided with a string. This
meant the correct field map was never found.

I have forced the result into a list if it isn't already,
fixed the indenting and corrected the test for success.

The join option could be used because it allows paths without
a session field to be matched as substrings.

Recent versions of dcm2bids include the session field.
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.

1 participant