Skip to content

Commit

Permalink
Merge pull request #2 from haoershi/main
Browse files Browse the repository at this point in the history
update
  • Loading branch information
haoershi authored Jan 22, 2024
2 parents 300872f + d1c5d55 commit 588b052
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions demo/ana_pipeline.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
% * Fieldtrip (optional for section 4)

%% set path
filename = which('ana_pipeline.m');
filename = mfilename('fullpath');
if contains(filename,'LiveEditorEvaluationHelper')
filename = matlab.desktop.editor.getActiveFilename;
end
[work_path, ~, ~] = fileparts(filename);
cd(work_path);
addpath(genpath('.')); % this should add analysis and matlab folder
Expand All @@ -45,7 +48,7 @@
'name',{'Common average re-referencing'; 'Bipolar re-referencing';'Laplacian re-referencing'}, ...
'col', mat2cell(hex2rgb({'#51b8bd','#de7862','#63804f'}),ones(3, 1)));

ifRef = logical([1, 1, 1]); % <- make change here
ifRef = logical([1, 1, 0]); % <- make change here
params.ref = ref(ifRef);
params.nRef = length(find(ifRef));
params.LAR_loc = '';
Expand Down Expand Up @@ -96,11 +99,11 @@
params.nSeg = 5; % <- make change here
% 🟡dataset
allDataset = {'HUP','MUSC'};
params.dataset = 'MUSC'; % <- make change here
params.dataset = 'HUP'; % <- make change here
if exist(params.dataset,'dir') == 0
mkdir(fullfile(work_path,params.dataset));
end
params.chans_to_use = 'LR'; % <- make change here, options gw, gray, white, LR
params.chans_to_use = 'gw'; % <- make change here, options gw, gray, white, LR

% print some basic characteristics
fprintf('There are:\n');
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions matlab/iEEGPreprocess.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ function check_user(obj)
if isempty(obj.users)
disp('Please set up iEEG login info before downloading data.');
obj.login_config();
obj.load_all_users();
end
end

Expand Down
6 changes: 3 additions & 3 deletions matlab/tools/others/login_config_base.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
% added variable input for testing purposes

p = inputParser;
addOptional(p, 'username', '', @(x) isstring(x) || ischar(x));
addOptional(p, 'password', '', @(x) isstring(x) || ischar(x));
parse(p, varargin);
addOptional(p, 'username', '',@(x) isstring(x) || ischar(x));
addOptional(p, 'password', '',@(x) isstring(x) || ischar(x));
parse(p, varargin{:});
username = p.Results.username;
password = p.Results.password;

Expand Down

0 comments on commit 588b052

Please sign in to comment.