From aa48a2e6e7edaccd4fc23e4e57eac61714d15ccc Mon Sep 17 00:00:00 2001 From: Tobias Moser Date: Fri, 16 Feb 2018 12:55:05 +0000 Subject: [PATCH] bugfix git-svn-id: https://svn.code.sf.net/p/pspm/svn/trunk@528 23ec9670-3a1e-4a12-9187-a0ba8bce340d --- pspm_cfg/pspm_cfg_run_pp_heart_data.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pspm_cfg/pspm_cfg_run_pp_heart_data.m b/pspm_cfg/pspm_cfg_run_pp_heart_data.m index df6067bf6..f5298ca28 100644 --- a/pspm_cfg/pspm_cfg_run_pp_heart_data.m +++ b/pspm_cfg/pspm_cfg_run_pp_heart_data.m @@ -42,13 +42,17 @@ % copy options opt = struct(); - opt.minhr = job.pp_type{i}.ecg2hb.opt.minhr; - opt.maxhr = job.pp_type{i}.ecg2hb.opt.maxhr; + opt.minHR = job.pp_type{i}.ecg2hb.opt.minhr; + opt.maxHR = job.pp_type{i}.ecg2hb.opt.maxhr; opt.semi = job.pp_type{i}.ecg2hb.opt.semi; opt.twthresh = job.pp_type{i}.ecg2hb.opt.twthresh; % set replace - opt.replace = replace; + if replace + opt.channel_action = 'replace'; + else + opt.channel_action = 'add'; + end % call function [sts, winfo] = pspm_ecg2hb(fn, chan, opt); @@ -99,4 +103,4 @@ end; end; -out = {fn}; \ No newline at end of file +out = {fn};