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

MRG: Add support for channel types, add .DS_Store to .gitignore, add a conversion to str for fname #4

Merged
merged 5 commits into from
Apr 25, 2022

Conversation

mscheltienne
Copy link
Contributor

@mscheltienne mscheltienne commented Nov 10, 2021

Hello, I had to move some of my -raw.fif files to EEGLAB; and I noticed the lack of support for channels types (which is problematic for me). I'm adding it here, using the example channel types provided here.

A quick test shows that everything is working; the now loaded .set file in EEGLAB does show the correct channel types.
Please correct me if I'm wrong or if I overlooked anything.

I'm not adding anything to the test (yet) because mne.io.read_raw_eeglab() doesn't seem to support reading the channel types anyway. I will add it there as well when MNE release a version including mne-tools/mne-python#9990


I also added 2 more small improvements:

  • .DS_Store to the .gitignore for macOS developers.
  • str(fname) before calling scipy.io.savemat. It's not uncommon for users to provide the path to a file as a pathlib.Path instance and this would raise an error in scipy.

@mscheltienne mscheltienne changed the title Add support for channel types, add .DS_Store to .gitignore, add a conversion to str for fname MRG: Add support for channel types, add .DS_Store to .gitignore, add a conversion to str for fname Nov 12, 2021
@mscheltienne
Copy link
Contributor Author

@jackz314 pinging for review.

Copy link
Owner

@jackz314 jackz314 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 for this!

@larsoner larsoner merged commit bd0d627 into jackz314:main Apr 25, 2022
@larsoner
Copy link
Collaborator

Thanks @mscheltienne !

@mscheltienne mscheltienne deleted the improvements branch April 25, 2022 20:48
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.

3 participants