nih-megcore / nih_to_mne

General functions for NIH data to work with MNE python
Other
2 stars 3 forks source link

Ignore Folders not ending in .ds #23

Closed jstout211 closed 2 years ago

jstout211 commented 2 years ago

The make_meg_bids code will crash if there are extraneous folders in the dataset.

This occurs because there is a fname.split('_') to get the task ID - but there is no underscore in the name.

jstout211 commented 2 years ago

Fixed in b2d77551ed3589d80d21092f844c25b3737bb564

Previously the code only printed the message to the log file, but never dropped the non .ds datasets from the list.