Skip to content

Commit

Permalink
fix error in existing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jul 23, 2024
1 parent df419ec commit 8ae1501
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions matsim/calibration/run_simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def run(jar: Union[str, os.PathLike],
if worker_id >= workers:
raise ValueError("Worker ID must be smaller than number of workers (starts at 0).")

if not os.path.exists("eval-runs"):
makedirs("eval-runs")
makedirs("eval-runs", exist_ok=True)

for i in range(runs):
if i % workers != worker_id:
Expand Down

0 comments on commit 8ae1501

Please sign in to comment.