MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / read_config_as_dict

Function read_config_as_dict

deeplabcut/core/config.py:21–32  ·  view source on GitHub ↗

Args: config_path: the path to the configuration file to load Returns: The configuration file with pure Python classes

(config_path: str | Path)

Source from the content-addressed store, hash-verified

19
20
21def read_config_as_dict(config_path: str | Path) -> dict:
22 """
23 Args:
24 config_path: the path to the configuration file to load
25
26 Returns:
27 The configuration file with pure Python classes
28 """
29 with open(config_path) as f:
30 cfg = YAML(typ="safe", pure=True).load(f)
31
32 return cfg
33
34
35def write_config(config_path: str | Path, config: dict, overwrite: bool = True) -> None:

Callers 15

build_weight_initFunction · 0.90
load_super_animal_configFunction · 0.90
get_scorer_nameFunction · 0.90
extract_mapsFunction · 0.90
extract_save_all_mapsFunction · 0.90
create_tracking_datasetFunction · 0.90

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected