Skip to content

Commit

Permalink
Fix bug - two time scaling of the capacity with 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
mltja authored and nesnoj committed Jul 25, 2024
1 parent 7161d20 commit 1b13c13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ding0/tools/egon_data_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,7 @@ def get_egon_industrial_buildings(orm, session, subst_id, load_area):
mw2kw = 10**3
query = (
session.query(
(orm["egon_sites_ind_load_curves_individual"].peak_load * mw2kw).label(
"capacity"
),
orm["egon_sites_ind_load_curves_individual"].peak_load.label("capacity"),
func.ST_AsText(
func.ST_Transform(orm["egon_industrial_sites"].geom, 3035)
).label("geometry"),
Expand Down Expand Up @@ -484,7 +482,9 @@ def get_egon_industrial_buildings(orm, session, subst_id, load_area):
industrial_buildings_df["geometry"] = industrial_buildings_df["geometry"].apply(
shapely.wkt.loads
)
industrial_buildings_df["footprint"] = industrial_buildings_df["footprint"].apply(shapely.wkt.loads)
industrial_buildings_df["footprint"] = industrial_buildings_df["footprint"].apply(
shapely.wkt.loads
)

industrial_buildings_df["sector"] = "industrial"
if not round(load_area.peak_load_industrial) == round(
Expand Down

0 comments on commit 1b13c13

Please sign in to comment.