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))

Check warning on line 183 in smartsim/experiment.py

View check run for this annotation

Codecov / codecov/patch

smartsim/experiment.py#L183

Added line #L183 was not covered by tests

run_id = datetime.datetime.now().replace(microsecond=0).isoformat()
run_id = (

Check warning on line 185 in smartsim/experiment.py

View check run for this annotation

Codecov / codecov/patch

smartsim/experiment.py#L185

Added line #L185 was not covered by tests
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_)

Check warning on line 189 in smartsim/experiment.py

View check run for this annotation

Codecov / codecov/patch

smartsim/experiment.py#L188-L189

Added lines #L188 - L189 were not covered by tests

Expand Down

0 comments on commit ae2446e

Please sign in to comment.