Skip to content

Commit

Permalink
Fix EEGLAB import (nodatchans)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Feb 3, 2025
1 parent 715540a commit 701654f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/io/eeglab/eeglab.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _get_montage_information(eeg, get_pos, *, montage_units):
)

lpa, rpa, nasion = None, None, None
if hasattr(eeg, "chaninfo") and isinstance(eeg.chaninfo["nodatchans"], dict):
if hasattr(eeg, "chaninfo") and isinstance(eeg.chaninfo.get("nodatchans"), dict):
nodatchans = eeg.chaninfo["nodatchans"]
types = nodatchans.get("type", [])
descriptions = nodatchans.get("description", [])
Expand Down

0 comments on commit 701654f

Please sign in to comment.