Commit 4e7b08a6 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

The 'enable_absolute_coreg' parameter is now automatically set to True if a...


The 'enable_absolute_coreg' parameter is now automatically set to True if a reference image is provided via the CLI.
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 4e6ee1e7
......@@ -165,10 +165,13 @@ def parsedArgs_to_user_opts(cli_args: argparse.Namespace) -> dict:
:param cli_args: options as parsed by the argparse.ArgumentParser
"""
# convert argparse Namespace object to dictionary
opts = {k: v for k, v in vars(cli_args).items() if not k.startswith('_') and k != 'func'}
# activate absolute coreg if a reference image is given (the argparser does not separate these two options)
if opts['path_reference_image']:
opts['enable_absolute_coreg'] = True
# remove those options that have not been given explicitly (None values)
user_opts = dict()
for k, v in opts.items():
......
......@@ -68,8 +68,6 @@
'threads < 0': for as many threads as there are CPUs
'threads > 0': gives the number of threads*/
"blocksize":100 /*block size for multiprocessing*/
},
"smile": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment