Merge pull request #870 from PyPSA/heating-norway

Bugfix: Correct Norwegian heat demand
This commit is contained in:
Fabian Neumann 2024-01-17 10:03:11 +01:00 committed by GitHub
commit b422cf6135
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ Upcoming Release
* Remove option for wave energy as technology data is not maintained.
* Bugfix: Assure entering of code block which corrects Norwegian heat demand.
PyPSA-Eur 0.9.0 (5th January 2024)
==================================

View File

@ -479,7 +479,7 @@ def build_energy_totals(countries, eurostat, swiss, idees):
# The main heating source for about 73 per cent of the households is based on electricity
# => 26% is non-electric
if "NO" in df:
if "NO" in df.index:
elec_fraction = 0.73
no_norway = df.drop("NO")