INNER CODE UNIT · Python
merge_config_options
nianticlabs/simplerecon · options.py:355
def merge_config_options(self, config_options):
""""""
# loop over loaded config and update those in self.options.
for field_name in config_options.__dict__.keys():
value = config_options.__getattribute__(field_name)
self.options.__setattr__(field_name, value)
def merge_cl_args(self, cl_args):
# loop over loaded args and update those in self.options.
for arg_pair in cl_args._get_kwargs():
# this should be the only argument that doesn't match here.
if arg_pair[0] == "config_file":
continue
if arg_pair[1] is not None:
# check if type bool and if false, in that case ignore
if isinstance(arg_pair[1], bool) and not arg_pair[1]: