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

Shanoir issue#2518 #2576

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

alexpron
Copy link
Contributor

This Pull Request aims at dealing with MAC OS added files within the BIDS data import. This PR solves issue #2518

MAC OS Hidden Files

There are several types of MAC Hidden files that are introduced either by Finder (and Zip) or by AppleDouble mechanism
see :

Incompatibility with BIDS import

1. At the subject or session check level an file other than starting with sub- or sess- prefix was making the import crash
2. At data level these files if present in the datatype folder could be imported as real data 

Solution

  • Filtering of the MACOS Hidden file to exclude them at the subject, session and data level
  • Also added fix to deal with empty _sessions.tsv file that there making the process crash (dont know if its better now let me know)

@alexpron
Copy link
Contributor Author

Note that I found a parsing error in the json metadata file when numbers are written into scientific mode (i.e. 2e^-12).
Online json parser declare the .json file used compliant

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.

BIDS subject zip generated on MacOS -hidden files
2 participants