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

Error loading channel locations from Brainstorm .mat file #761

Closed
mahmad27 opened this issue Apr 17, 2024 · 1 comment
Closed

Error loading channel locations from Brainstorm .mat file #761

mahmad27 opened this issue Apr 17, 2024 · 1 comment

Comments

@mahmad27
Copy link

Description

I'm trying to import the channel locations from a '.mat' Brainstorm file within EEGLAB for a single participant. When using the readlocs() function, I get an error. I'm using the Leipzig Study for Mind-Body-Emotion Interactions (LEMON) data for participant 'sub-010291' and the EEG data can be accessed from here as a BrainVision file and the channel locations can be accessed from here.

Steps to Reproduce

  1. Load BrainVision EEG files for sub-010291 (from LEMON dataset)
  2. Load channel locations from Brainstorm file (sub-010291.mat)

Expected behavior:

Channel locations loaded successfully

Actual behavior:

EEGLAB error in function readlocs at line 423:
Unrecognized function or variable 'elocBrainstrom'.

Versions

OS version macOS Sonoma 14.3
Matlab version R2023b
EEGLAB version 2024.0*
@arnodelorme
Copy link
Collaborator

arnodelorme commented Apr 17, 2024

There was a minor glitch with the readlocs function to read this kind of file. Now fixed in 7fad5e6

readlocs('sub-010291.mat')
readlocs(): 'mat' format assumed from file extension

ans = 

  1×63 struct array with fields:

    labels
    X
    Y
    Z
    type
    sph_theta
    sph_phi
    sph_radius
    theta
    radius
    sph_theta_besa
    sph_phi_besa

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

No branches or pull requests

2 participants