MCPcopy Create free account
hub / github.com/JunlinHan/DCLGAN / copyconf

Function copyconf

util/util.py:24–28  ·  view source on GitHub ↗
(default_opt, **kwargs)

Source from the content-addressed store, hash-verified

22
23
24def copyconf(default_opt, **kwargs):
25 conf = Namespace(**vars(default_opt))
26 for key in kwargs:
27 setattr(conf, key, kwargs[key])
28 return conf
29
30
31def find_class_in_module(target_cls_name, module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected