Skip to content

Commit

Permalink
[gym_jiminy/rllib] Add milliseconds to log directory to avoid naming …
Browse files Browse the repository at this point in the history
…collision.
  • Loading branch information
duburcqa committed Jan 19, 2025
1 parent 9230554 commit 819bdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/gym_jiminy/rllib/gym_jiminy/rllib/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def initialize(num_cpus: int,
# Handling of default log name and sanity checks
if not log_name:
log_name = "_".join((
datetime.now().strftime("%Y_%m_%d_%H_%M_%S"),
datetime.now().strftime("%Y_%m_%d_%H_%M_%S_%f")[:-3],
re.sub(r'[^A-Za-z0-9_]', "_", socket.gethostname())))
else:
assert re.match(r'^[A-Za-z0-9_]+$', log_name), (
Expand Down

0 comments on commit 819bdaa

Please sign in to comment.