diff --git a/assume/common/outputs.py b/assume/common/outputs.py index ef54e234..a50a9efc 100644 --- a/assume/common/outputs.py +++ b/assume/common/outputs.py @@ -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 diff --git a/examples/examples.py b/examples/examples.py index bff70d6f..1c688cc3 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -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)