Skip to content

Commit

Permalink
tweak exp run_id to exclude colons in path
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Oct 21, 2024
1 parent bfc36e3 commit ae2446e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion smartsim/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def start(self, *jobs: Job | t.Sequence[Job]) -> tuple[LaunchedJobID, ...]:
# Create the run id
jobs_ = list(_helpers.unpack(jobs))

run_id = datetime.datetime.now().replace(microsecond=0).isoformat()
run_id = (
datetime.datetime.now().replace(microsecond=0).isoformat().replace(":", ".")
)
root = pathlib.Path(self.exp_path, run_id)
return self._dispatch(Generator(root), dispatch.DEFAULT_DISPATCHER, *jobs_)

Expand Down

0 comments on commit ae2446e

Please sign in to comment.