Skip to content

Commit

Permalink
Merge pull request #366 from rl-institut/feature/#363_pv_roof_pv_grou…
Browse files Browse the repository at this point in the history
…nd_swapped

Feature/#363 pv roof pv ground swapped
  • Loading branch information
nesnoj authored Sep 7, 2023
2 parents 14effb2 + 71c5a2a commit 36449db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe
- various fixes in charts, texts and units
- RES share calculation for SQ
- power and heat demand scaling for future scenario
- swap mapping of PV roof and PV ground in result calculation

## [0.6.0] - 2023-09-01
### Added
Expand Down
8 changes: 4 additions & 4 deletions digiplan/map/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def capacities_per_municipality_2045(simulation_id: int) -> pd.DataFrame:
results["capacities"].index.get_level_values(0).isin(config.SIMULATION_RENEWABLES)
]
mapping = {
"ABW-solar-pv_ground": "pv_roof",
"ABW-solar-pv_rooftop": "pv_ground",
"ABW-solar-pv_ground": "pv_ground",
"ABW-solar-pv_rooftop": "pv_roof",
"ABW-wind-onshore": "wind",
"ABW-hydro-ror": "hydro",
"ABW-biomass": "biomass",
Expand Down Expand Up @@ -182,8 +182,8 @@ def energies_per_municipality_2045(simulation_id: int) -> pd.DataFrame:
results["electricity_production"].index.get_level_values(0).isin(config.SIMULATION_RENEWABLES)
]
mapping = {
"ABW-solar-pv_ground": "pv_roof",
"ABW-solar-pv_rooftop": "pv_ground",
"ABW-solar-pv_ground": "pv_ground",
"ABW-solar-pv_rooftop": "pv_roof",
"ABW-wind-onshore": "wind",
"ABW-hydro-ror": "hydro",
"ABW-biomass": "biomass",
Expand Down

0 comments on commit 36449db

Please sign in to comment.