Skip to content

Commit

Permalink
Fix Method adjust_ac_load_timeseries() in SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
lenzim97 committed Jan 16, 2025
1 parent 685fa16 commit 4ea17e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/egon/data/datasets/hydrogen_etrago/power_to_h2.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def insert_o2_load_timeseries(df):

with engine.connect() as conn:
conn.execute(f"""
DELETE FROM {targets["load_timeseries"]["schema"].targets["load_timeseries"]["table"]}
DELETE FROM {targets["load_timeseries"]["schema"]}.{targets["load_timeseries"]["table"]}
WHERE load_id IN {tuple(df.load_id.values)}
AND scn_name = '{SCENARIO_NAME}'
"""
Expand Down Expand Up @@ -954,7 +954,7 @@ def insert_o2_generators(df):
print(f"generator data exported to: {table_name}")



def adjust_ac_load_timeseries(df, o2_timeseries):
#filter out affected ac_loads
queries[AC_LOAD] = f"""
Expand Down

0 comments on commit 4ea17e5

Please sign in to comment.