Skip to content

fix double experiment directory creation during training#46

Open
maedmatt wants to merge 1 commit intoamazon-far:mainfrom
maedmatt:fix/double-experiment-dir
Open

fix double experiment directory creation during training#46
maedmatt wants to merge 1 commit intoamazon-far:mainfrom
maedmatt:fix/double-experiment-dir

Conversation

@maedmatt
Copy link

@maedmatt maedmatt commented Feb 6, 2026

Issue

Issue is described in #44

Fix

Pass the experiment_dir computed in train_agent.py through EnvConfig to base_task.py instead of having base_task.py compute its own. Added an optional experiment_dir: str | None = None field to EnvConfig. Other callers (replay, eval, tests) that don't pass it get the existing fallback behavior.

Test plan

  • ruff check passes
  • mypy passes (no new issues)
  • Full test suite passes (151 passed, 2 skipped)
  • Smoke test: python -m holosoma.train_agent exp:g1-23dof --algo.config.num_learning_iterations=5 creates exactly one directory

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

base_task.py was calling get_timestamp() independently, creating a
second experiment directory a few seconds after train_agent.py. Now
train_agent.py passes its experiment_dir through EnvConfig so both use
the same directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant