MCPcopy Create free account
hub / github.com/LeapLabTHU/DAT / get_config

Function get_config

config.py:204–211  ·  view source on GitHub ↗

Get a yacs CfgNode object with default values.

(args)

Source from the content-addressed store, hash-verified

202
203
204def get_config(args):
205 """Get a yacs CfgNode object with default values."""
206 # Return a clone so that the defaults will not be altered
207 # This is for the "local variable" use pattern
208 config = _C.clone()
209 update_config(config, args)
210
211 return config

Callers 2

parse_optionFunction · 0.90
parse_optionFunction · 0.90

Calls 1

update_configFunction · 0.85

Tested by

no test coverage detected