MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / load_config

Function load_config

scripts/multi_exps_plot/multi_exps_plot.py:26–36  ·  view source on GitHub ↗
(config_path: str)

Source from the content-addressed store, hash-verified

24
25
26def load_config(config_path: str) -> dict:
27 if not os.path.exists(config_path):
28 logger.error(f"Configuration file not found: {config_path}")
29 raise FileNotFoundError(f"Configuration file not found: {config_path}")
30 with open(config_path, "r", encoding="utf-8") as f:
31 try:
32 config = yaml.safe_load(f)
33 except yaml.YAMLError as e:
34 logger.error(f"Error parsing YAML file: {e}", exc_info=True)
35 raise ValueError(f"Error parsing YAML file: {e}")
36 return config
37
38
39def find_scalars_in_event_file(event_file: str) -> list[str]:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected