MRG: Add support for channel types, add .DS_Store to .gitignore, add a conversion to str for fname #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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#9990I also added 2 more small improvements:
.DS_Store
to the .gitignore for macOS developers.str(fname)
before callingscipy.io.savemat
. It's not uncommon for users to provide the path to a file as apathlib.Path
instance and this would raise an error in scipy.