MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / convert_to_namespace

Method convert_to_namespace

mapping/demo/parser.py:43–50  ·  view source on GitHub ↗
(self, dict_in, args=None)

Source from the content-addressed store, hash-verified

41 return configs
42
43 def convert_to_namespace(self, dict_in, args=None):
44 if args is None:
45 args = argparse.Namespace()
46 for ckey, cvalue in dict_in.items():
47 if ckey not in args.__dict__.keys():
48 args.__dict__[ckey] = cvalue
49
50 return args
51
52 def update_recursive(self, dict1, dict2):
53 for k, v in dict2.items():

Callers 1

parse_argsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected