MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / _save_run_metadata

Function _save_run_metadata

scripts/hora/train.py:162–169  ·  view source on GitHub ↗
(output_dif: str, full_config)

Source from the content-addressed store, hash-verified

160
161
162def _save_run_metadata(output_dif: str, full_config) -> None:
163 date = str(datetime.datetime.now().strftime('%m%d%H'))
164 with open(os.path.join(output_dif, 'gitdiff.patch'), 'w', encoding='utf-8') as f:
165 f.write('')
166 config_name = f'config_{date}.yaml'
167
168 with open(os.path.join(output_dif, config_name), 'w', encoding='utf-8') as f:
169 f.write(OmegaConf.to_yaml(full_config))
170
171
172def _attach_env_runtime_to_config(full_config, env_cfg) -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected