Skip to content

Commit

Permalink
bugfix wrong schema name in heat pump import
Browse files Browse the repository at this point in the history
  • Loading branch information
khelfen committed Feb 11, 2025
1 parent b094b47 commit 6b58f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edisgo/io/heat_pump_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _get_individual_heat_pump_capacity():
"boundaries",
)
egon_etrago_bus, egon_etrago_link = config.import_tables_from_oep(
engine, ["egon_etrago_bus", "egon_etrago_link"], "supply"
engine, ["egon_etrago_bus", "egon_etrago_link"], "grid"
)

building_ids = edisgo_object.topology.loads_df.building_id.unique()
Expand Down
2 changes: 1 addition & 1 deletion edisgo/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def import_tables_from_oep(
saio.register_schema(schema_name, engine)
tables = []
for table in table_names:
module_name = f"saio.{schema}"
module_name = f"saio.{schema_name}"
tables.append(importlib.import_module(module_name).__getattr__(table))
return tables

Expand Down

0 comments on commit 6b58f58

Please sign in to comment.