MCPcopy Create free account
hub / github.com/DVampire/FinAgent / update_data_root

Function update_data_root

finagent/utils/misc.py:109–113  ·  view source on GitHub ↗
(cfg, root)

Source from the content-addressed store, hash-verified

107 return latest_path
108
109def update_data_root(cfg, root):
110 cfg.root = root
111 for key, value in cfg.items():
112 if isinstance(value, dict) and "root" in value:
113 cfg[key]["root"] = root
114
115def get_test_pipeline_cfg(cfg: Union[str, ConfigDict]) -> ConfigDict:
116 """Get the test dataset pipeline from entire config.

Callers 12

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected