Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into RL-strategy-for-house…
Browse files Browse the repository at this point in the history
…hold
  • Loading branch information
HafnerMichael committed Nov 10, 2024
2 parents cf171a2 + d62d18a commit 9822337
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assume/common/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ def __init__(
self.write_dfs: dict = defaultdict(list)
self.locks = defaultdict(lambda: Lock())

if self.db is not None:
self.delete_db_scenario(self.simulation_id)

self.kpi_defs: dict[str, OutputDef] = {
"avg_price": {
"value": "avg(price)",
Expand Down Expand Up @@ -191,6 +188,8 @@ def setup(self):
def on_ready(self):
if self.db_uri:
self.db = create_engine(self.db_uri)
if self.db is not None:
self.delete_db_scenario(self.simulation_id)
if self.save_frequency_hours is not None:
recurrency_task = rr.rrule(
freq=rr.HOURLY,
Expand Down

0 comments on commit 9822337

Please sign in to comment.