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

[BIDS EEG import bug fix] This fixes a bug happening during the file type determination #512

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

cmadjar
Copy link
Collaborator

@cmadjar cmadjar commented Dec 10, 2019

Description

This fixes a bug during the file type determination in the python scripts. Instead of looking for the file type string in the whole file path, it now uses a regex to properly match the extension as it should have been done from the beginning...

To test this

Use the code from this branch on the cuban dataset that Iris has.

@cmadjar
Copy link
Collaborator Author

cmadjar commented Dec 10, 2019

This has been kindly tested by Iris from the Cuban Brain Mapping project and that resolved the bug she was experiencing so merging it.

@cmadjar cmadjar merged commit db90b5d into aces:22.0-release Dec 10, 2019
Copy link
Collaborator

@christinerogers christinerogers left a comment

Choose a reason for hiding this comment

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

Looks great to me.
Should tgz and tar.gz or even .zip also be allowed?
And do you want help testing this from others like @nicolasbrossard so you can release this week?

@cmadjar
Copy link
Collaborator Author

cmadjar commented Dec 11, 2019

@christinerogers actually the regular expression would be able to determine if a file is .zip or .tgz if those files make it to the BIDS standard one day. I added the (\.gz)? in the regex so that compressed NIfTI files (.nii.gz) can still be recognized as nii file type.

Hope my explanation makes sense...

@christinerogers
Copy link
Collaborator

perfectly, thanks. i think i'm just forgetting what the BIDS standard includes in the alphabet soup...

@cmadjar cmadjar added this to the 22.0 milestone Jan 24, 2020
@cmadjar cmadjar deleted the fix_bug_when_determining_file_type branch March 27, 2020 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants