MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / read_config

Function read_config

deeplabcut/utils/skeleton.py:39–44  ·  view source on GitHub ↗
(configname)

Source from the content-addressed store, hash-verified

37# NOTE @C-Achard 2026-03-26 duplicate config read/write functions
38# should be addressed in config refactor
39def read_config(configname):
40 if not os.path.exists(configname):
41 raise FileNotFoundError(f"Config {configname} is not found. Please make sure that the file exists.")
42 yaml = YAML(typ="rt")
43 with open(configname, encoding="utf-8") as file:
44 return yaml.load(file)
45
46
47def write_config(configname, cfg):

Callers 2

__init__Method · 0.70
read_configMethod · 0.70

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected