stuartfogel / CountingSheepPSG

EEGLAB-compatible analysis software for manual / visual sleep stage scoring, signal processing and event marking of polysomnographic (PSG) data for MATLAB.
https://github.com/stuartfogel/CountingSheepPSG
GNU General Public License v3.0
9 stars 4 forks source link

get eeglab path - fixed #1

Closed EllaGab closed 1 year ago

EllaGab commented 1 year ago

There was a problem with getting the eeglab path. It didn't work on Mac (I'm not sure about Linux), could work on Windows but only when both EEGLab and CountingSheepPSG were subdirectories in the Matlab default directory.

I fixed the problem so that now it should work on any machine as long as EEGLab and CountingSheepPSG are on the Matlab path. Otherwise, it will try to locate EEGLab within the Matlab default directory and add it to the Matlab path. The code has been validated on Mac.