diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 52b2ddc2..ee8858a4 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -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) ================================== diff --git a/scripts/build_energy_totals.py b/scripts/build_energy_totals.py index 67b86466..80c5d442 100644 --- a/scripts/build_energy_totals.py +++ b/scripts/build_energy_totals.py @@ -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")