Skip to content

Commit

Permalink
Update paths for EEGLAB 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
jprod committed Dec 13, 2024
1 parent af8a44d commit 8db1a37
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion 1. pre-process/HAPPE_v3.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
% SET HAPPE AND EEGLAB PATHS USING THE RUNNING SCRIPT
happeDir = strrep(fileparts(which(mfilename('fullpath'))), [filesep '1. ' ...
'pre-process'], '') ;
eeglabDir = [happeDir filesep 'packages' filesep 'eeglab2022.0'] ;
eeglabDir = [happeDir filesep 'packages' filesep 'eeglab2024.0'] ;

% ADD HAPPE AND REQUIRED FOLDERS TO PATH
addpath([happeDir filesep '1. pre-process'], ...
Expand Down
8 changes: 4 additions & 4 deletions 3. generate/generateMicroStates.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
[happeDir filesep 'scripts'], ...
[happeDir filesep 'scripts' filesep 'ui'], ...
[happeDir filesep 'scripts' filesep 'support'], ...
[happeDir filesep 'packages' filesep 'eeglab2022.0']);
genpath([happeDir filesep 'eeglab2022.0' filesep 'plugins' filesep ...
[happeDir filesep 'packages' filesep 'eeglab2024.0']);
genpath([happeDir filesep 'eeglab2024.0' filesep 'plugins' filesep ...
'MST1.0']) ;
pluginDir = dir([happeDir filesep 'packages' filesep 'eeglab2022.0' filesep 'plugins']) ;
pluginDir = strcat([happeDir filesep 'packages' filesep 'eeglab2022.0'], ...
pluginDir = dir([happeDir filesep 'packages' filesep 'eeglab2024.0' filesep 'plugins']) ;
pluginDir = strcat([happeDir filesep 'packages' filesep 'eeglab2024.0'], ...
filesep, 'plugins', filesep, {pluginDir.name}, ';') ;
addpath([pluginDir{:}]) ;

Expand Down
2 changes: 1 addition & 1 deletion 3. generate/generateNonlinearMeasures.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
fprintf('Preparing HAPPE generateNonlinearMeasures...\n') ;
happeDir = strrep(fileparts(which(mfilename('fullpath'))), [filesep '3. ' ...
'generate'], '') ;
eeglabDir = [happeDir filesep 'packages' filesep 'eeglab2022.0'] ;
eeglabDir = [happeDir filesep 'packages' filesep 'eeglab2024.0'] ;
addpath([happeDir filesep '3. generate'], ...
[happeDir filesep 'files'], ...
[happeDir filesep 'scripts'], ...
Expand Down
8 changes: 4 additions & 4 deletions 3. generate/generatePower.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
[happeDir filesep 'scripts'], ...
[happeDir filesep 'scripts' filesep 'ui'], ...
[happeDir filesep 'scripts' filesep 'support'], ...
[happeDir filesep 'packages' filesep 'eeglab2022.0'], ...
genpath([happeDir filesep 'packages' filesep 'eeglab2022.0' filesep ...
[happeDir filesep 'packages' filesep 'eeglab2024.0'], ...
genpath([happeDir filesep 'packages' filesep 'eeglab2024.0' filesep ...
'plugins' filesep 'EEGLAB-specparam-master'])) ;
pluginDir = dir([happeDir filesep 'packages' filesep 'eeglab2022.0' filesep 'plugins']) ;
pluginDir = strcat([happeDir filesep 'packages' filesep 'eeglab2022.0'], ...
pluginDir = dir([happeDir filesep 'packages' filesep 'eeglab2024.0' filesep 'plugins']) ;
pluginDir = strcat([happeDir filesep 'packages' filesep 'eeglab2024.0'], ...
filesep, 'plugins', filesep, {pluginDir.name}, ';') ;
addpath([pluginDir{:}]) ;

Expand Down
2 changes: 1 addition & 1 deletion 4. validate/addSimERP.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
fprintf('Preparing HAPPE''s addSimERP script...\n') ;
happeDir = strrep(fileparts(which(mfilename('fullpath'))), [filesep '4. ' ...
'validate'], '') ;
eeglabDir = [happeDir filesep 'packages' filesep 'eeglab2022.0'] ;
eeglabDir = [happeDir filesep 'packages' filesep 'eeglab2024.0'] ;
addpath([happeDir filesep '4. validate'], ...
[happeDir filesep 'files'], ...
[happeDir filesep 'files' filesep 'ERPs'], ...
Expand Down
2 changes: 1 addition & 1 deletion scripts/support/fixLocs.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function locs = fixLocs(origLocs, happeDir)
locs_1020 = readlocs([happeDir filesep 'Packages' filesep 'eeglab2022.0' ...
locs_1020 = readlocs([happeDir filesep 'Packages' filesep 'eeglab2024.0' ...
filesep 'sample_locs' filesep 'Standard-10-20-Cap81.locs']) ;
defaultChanIDs = {locs_1020.labels} ;
locs = struct('labels', [], 'type', [], 'theta', [], 'radius', [], ...
Expand Down

0 comments on commit 8db1a37

Please sign in to comment.