From 8f8af5751ea4058b8e1e832fa4c9f2ae1597a83c Mon Sep 17 00:00:00 2001 From: Guillaume HEUSCH <guillaume.heusch@idiap.ch> Date: Wed, 27 Jun 2018 13:53:06 +0200 Subject: [PATCH] [ssr] changed default values for protocol and subset --- bob/rppg/ssr/script/spatial_subspace_rotation.py | 6 +++--- bob/rppg/ssr/script/ssr_from_mask.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bob/rppg/ssr/script/spatial_subspace_rotation.py b/bob/rppg/ssr/script/spatial_subspace_rotation.py index a9010a5..f906bf2 100644 --- a/bob/rppg/ssr/script/spatial_subspace_rotation.py +++ b/bob/rppg/ssr/script/spatial_subspace_rotation.py @@ -22,7 +22,7 @@ Options: -V, --version Show version -P, --plot Set this flag if you'd like to follow-up the algorithm execution graphically. We'll plot some interactions. - -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 output directory where the resulting @@ -91,8 +91,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/ssr/script/ssr_from_mask.py b/bob/rppg/ssr/script/ssr_from_mask.py index 4e3eeb5..12fce13 100644 --- a/bob/rppg/ssr/script/ssr_from_mask.py +++ b/bob/rppg/ssr/script/ssr_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 @@ -102,8 +102,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