(self, dict_in, args=None)
| 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(): |