diff --git a/bob/rppg/chrom/script/extract_pulse.py b/bob/rppg/chrom/script/extract_pulse.py index 74d74c32338ea98ddb824e15abd76bda8661c29f..26e0fcb8ebd7fa2785aa0e82f8ae62376d7c43d7 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 6a25c4e4e1eebcfcb57d65aef503396c78a0e613..15cfac0259bccde1a355efec6059daca51f50493 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)