From b865d37ab354c8f24ece15d8293cad9e53b9abc0 Mon Sep 17 00:00:00 2001 From: Guillaume HEUSCH <guillaume.heusch@idiap.ch> Date: Wed, 27 Jun 2018 13:51:39 +0200 Subject: [PATCH] [chrom] changed default values for protocol and subset --- bob/rppg/chrom/script/extract_pulse.py | 6 +++--- bob/rppg/chrom/script/extract_pulse_from_mask.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bob/rppg/chrom/script/extract_pulse.py b/bob/rppg/chrom/script/extract_pulse.py index 74d74c3..26e0fcb 100644 --- a/bob/rppg/chrom/script/extract_pulse.py +++ b/bob/rppg/chrom/script/extract_pulse.py @@ -20,7 +20,7 @@ Usage: Options: -h, --help Show this screen -V, --version Show version - -p, --protocol=<string> Protocol. + -p, --protocol=<string> Protocol [default: all]. -s, --subset=<string> Data subset to load. If nothing is provided all the data sets will be loaded. -o, --pulsedir=<path> The path to the directory where signal extracted @@ -99,8 +99,8 @@ def main(user_input=None): configuration = load([os.path.join(args['<configuration>'])]) # get various parameters, either from config file or command-line - protocol = get_parameter(args, configuration, 'protocol', 'None') - subset = get_parameter(args, configuration, 'subset', '') + protocol = get_parameter(args, configuration, 'protocol', 'all') + subset = get_parameter(args, configuration, 'subset', None) pulsedir = get_parameter(args, configuration, 'pulsedir', 'pulse') start = get_parameter(args, configuration, 'start', 0) end = get_parameter(args, configuration, 'end', 0) diff --git a/bob/rppg/chrom/script/extract_pulse_from_mask.py b/bob/rppg/chrom/script/extract_pulse_from_mask.py index 6a25c4e..15cfac0 100644 --- a/bob/rppg/chrom/script/extract_pulse_from_mask.py +++ b/bob/rppg/chrom/script/extract_pulse_from_mask.py @@ -18,7 +18,7 @@ Usage: Options: -h, --help Show this screen -V, --version Show version - -p, --protocol=<string> Protocol. + -p, --protocol=<string> Protocol [default: all]. -s, --subset=<string> Data subset to load. If nothing is provided all the data sets will be loaded. -o, --pulsedir=<path> The path to the directory where signal extracted @@ -103,8 +103,8 @@ def main(user_input=None): configuration = load([os.path.join(args['<configuration>'])]) # get various parameters, either from config file or command-line - protocol = get_parameter(args, configuration, 'protocol', 'None') - subset = get_parameter(args, configuration, 'subset', '') + protocol = get_parameter(args, configuration, 'protocol', 'all') + subset = get_parameter(args, configuration, 'subset', None) pulsedir = get_parameter(args, configuration, 'pulsedir', 'pulse') npoints = get_parameter(args, configuration, 'npoints', 40) indent = get_parameter(args, configuration, 'indent', 10) -- GitLab