INNER CODE UNIT · Python
OptionsHandler
nianticlabs/simplerecon · options.py:220
class OptionsHandler():
"""A class for handling experiment options.
This class handles options files and optional CLI arguments for
experimentation.
The intended use looks like this:
optionsHandler = options.OptionsHandler()
# uses a config filename from args or populates flags from CLI
optionsHandler.parse_and_merge_options()
# optionally print
optionsHandler.pretty_print_options()
You could also load from a config file you choose and ignore one that
may be supplied in args.
optionsHandler.parse_and_merge_options(config_filepath =