Skip to content

Commit

Permalink
Resolved conflicts I think
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Alexander committed Oct 30, 2023
2 parents f53b69a + 166b816 commit 3120523
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion preprocessing/ft_opm_psd.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
end

% Split data into epochs
nsamps = (cfg.trial_length)*rawData.fsample;
nsamps = floor((cfg.trial_length)*rawData.fsample);
ntrials = numel(rawData.trial);

for ii = 1:ntrials
Expand Down
23 changes: 23 additions & 0 deletions preprocessing/ft_wrapper_spm_amm.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
cfg.correctgrad = 'yes';
end

<<<<<<< HEAD
if ~isfield(cfg, 'corrLim')
cfg.corrLim = 1;
end
Expand All @@ -39,6 +40,21 @@
cfg.window = 10;
end

=======
if ~isfield(cfg, 'li')
cfg.li = 9;
end

if ~isfield(cfg, 'le')
cfg.le = 2;
end

if ~isfield(cfg, 'corrLim')
cfg.corrLim = 0.98;
end


>>>>>>> 166b81613d6d57bc8f5b51dbd317d811d4393b51
%% Add paths
% Check if fieldtrip is currently in the path
try
Expand Down Expand Up @@ -67,6 +83,7 @@
%% AMM
S = [];
S.D = data_SPM;
<<<<<<< HEAD
S.corrLim = cfg.corrLim;
S.li = cfg.li;
S.le = cfg.le;
Expand All @@ -76,6 +93,12 @@
catch
error('Please check that you have the latest version of SPM which includes spm_opm_amm.');
end
=======
S.le = cfg.le;
S.li = cfg.li;
S.corrLim = cfg.corrLim;
data_SPM_AMM = spm_opm_amm(S); % Contact Tim Tierney for these scripts
>>>>>>> 166b81613d6d57bc8f5b51dbd317d811d4393b51

%% To Fieldtrip
data_out = data_SPM_AMM.ftraw;
Expand Down

0 comments on commit 3120523

Please sign in to comment.