Skip to content

Commit

Permalink
Merge branch 'develop' into 559-pspm_convert_ppg2hb-supports-both-opt…
Browse files Browse the repository at this point in the history
…ionsreplace-and-optionschannel_action
  • Loading branch information
teddychao authored Jan 7, 2024
2 parents ff38200 + 1066d6f commit ff130ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pspm_extract_segments.m
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
input_data = model_strc.input.data;
sampling_rates = model_strc.input.sr;
filtered_sr = model_strc.input.filter.down;
else
elseif strcmpi(model_strc.modeltype, 'dcm')
% want to map the informations of dcm into a multi
cond_names = unique(model_strc.trlnames);

Expand Down Expand Up @@ -318,10 +318,18 @@
point= point+nr_trials_in_sess;
end
input_data = model_strc.input.scr;
% incorporate missing information
if isfield(model_strc.input, 'missing_data')
for sn = 1:numel(model_strc.input)
input_data{sn}(model_strc.input.missing_data{sn}) = NaN;
end
end
sampling_rates = model_strc.input.sr;
if numel(sampling_rates) == 1
sampling_rates = repmat(sampling_rates, n_sessions, 1);
end
else
error('Don''t know what to do');
end
%% Normalise data
if options.norm
Expand Down

0 comments on commit ff130ac

Please sign in to comment.