Fix eeglab loading issue while calling _get_montage_information due to scalar x,y,z in 'nodatchans'#13395
Conversation
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
_get_montage_information due to scalar x,y,z in 'nodatchans'
drammock
left a comment
There was a problem hiding this comment.
thanks for the clear reproducible example and the fix! I confirm the fix works with the linked files and the code in this PR. Could you please add a changelog entry? doc/changes/dev/13395.bugfix.rst; see other files in that folder for examples. First-time contributors (I think that applies to you?) should use the :newcontrib: role in the changelog entry, and add themselves (alphabetically) to doc/changes/names.inc also.
larsoner
left a comment
There was a problem hiding this comment.
Comments addressed, marking for merge-when-green -- thanks in advance @emrecncelik !
|
Thank you! I've had a tiny bit of trouble with the change log since I'm not that familiar with it, sorry for the hassle. |
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
Reference issue
This issue was raised in the forum: https://mne.discourse.group/t/saved-using-eeglab-the-set-file-cannot-be-opened/11237
It was also raised in #11227 but was marked as closed.
Bug summary
Minimal code that reproduces the error for specific eeglab data, you should download and unzip the data in the following URL: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/PX8PND
Results in (summarized),
What does this implement/fix?
This error was caused by xs, ys, zs being a float value rather than an iterable or array. Added
np.atleast_1dfunction after getting the x, y, z values to ensure they are iterables.Additional information