Skip to content

Commit

Permalink
[feat] Write run logs in .runs/{action_name}
Browse files Browse the repository at this point in the history
  • Loading branch information
tamoyan committed Jan 27, 2025
1 parent 9720f9e commit a6cce40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion urartu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def main(cfg: DictConfig) -> None:
if is_multirun:
run_dir = Path(hydra_cfg.runtime.output_dir, hydra_cfg.job.id).parent
else:
run_dir = cwd.joinpath(".runs", datetime.now().strftime("%Y-%m-%d_%H-%M-%S"))
run_dir = cwd.joinpath(".runs", cfg.action_name, datetime.now().strftime("%Y-%m-%d_%H-%M-%S"))
os.makedirs(run_dir, exist_ok=True)

run_hash = secrets.token_hex(8)
Expand Down
2 changes: 1 addition & 1 deletion urartu/config/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ defaults:

hydra:
sweep:
dir: '.runs/${now:%Y-%m-%d}_${now:%H-%M-%S}_multirun'
dir: '.runs/${action_name}/${now:%Y-%m-%d}_${now:%H-%M-%S}_multirun'

action_name: ???

0 comments on commit a6cce40

Please sign in to comment.