Commit 90eb578e authored by Tyler Collins's avatar Tyler Collins
Browse files

Scalpart changed to have safe staging script referencing

parent cbb167a2
......@@ -63,24 +63,26 @@ logging_log('INFO', 'Loading set file: [batch_dfn]...');
EEG = pop_loadset('filepath','[batch_dfp]','filename','[batch_dfn]');
EEG = eeg_checkset( EEG );
%execute the staging script if specified.
if exist('[staging_script]');
[ssp,ssn,sse]=fileparts('[staging_script]');
addpath(ssp);
[staging_script]
end
%add channel coregistration procedure here.
%warp locations to standard head surface:
%warp locations to standard head surface:
if ~isempty('[montage_info]');
if isnumeric([montage_info])
EEG = warp_locs( EEG,'[ref_loc_file]', ...
'transform',[montage_info], ...
'manual','off');
else
if isempty(str2num('[montage_info]'));
%if it is a BIDS channel tsv, load the tsv,
%else read the file that is assumed to be a transformation matrix.
else
EEG = warp_locs( EEG,'[ref_loc_file]', ...
'transform',[[montage_info]], ...
'manual','off');
end
end
%execute the event marks initiation script.
if exist(['[staging_script]', '.m']) || exist('[staging_script]');
run [staging_script]
end
if ~isfield(EEG,'marks');
if isempty(EEG.icaweights)
EEG.marks=marks_init(size(EEG.data));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment