Skip to content

Commit

Permalink
fixes cvs_path creating an empty folder when not defined (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-harder authored Sep 20, 2023
1 parent 163fb56 commit 4508c2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assume/common/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

# store needed date
self.simulation_id = simulation_id
self.save_frequency_hours = save_frequency_hours
self.save_frequency_hours = save_frequency_hours or (end - start).days * 24

# make directory if not already present
self.export_csv_path = export_csv_path
Expand Down
3 changes: 1 addition & 2 deletions examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

log = logging.getLogger(__name__)

csv_path = "./examples/outputs"
os.makedirs(csv_path, exist_ok=True)
csv_path = ""

os.makedirs("./examples/local_db", exist_ok=True)

Expand Down

0 comments on commit 4508c2b

Please sign in to comment.