Merge pull request #878 from Tomkourou/fix-validation-plots
🐛 fix key_error in validation plots
This commit is contained in:
commit
6d2f2ccec7
@ -10,6 +10,8 @@ Release Notes
|
||||
Upcoming Release
|
||||
================
|
||||
|
||||
* Bugfix: Correct technology keys for the electricity production plotting to work out the box.
|
||||
|
||||
* New configuration option ``everywhere_powerplants`` to build conventional powerplants everywhere, irrespective of existing powerplants locations, in the network (https://github.com/PyPSA/pypsa-eur/pull/850).
|
||||
|
||||
* Remove option for wave energy as technology data is not maintained.
|
||||
|
@ -45,6 +45,12 @@ if __name__ == "__main__":
|
||||
header=[0, 1],
|
||||
parse_dates=True,
|
||||
)
|
||||
subset_technologies = ["Geothermal", "Nuclear", "Biomass", "Lignite", "Oil", "Coal"]
|
||||
lowercase_technologies = [
|
||||
technology.lower() if technology in subset_technologies else technology
|
||||
for technology in historic.columns.levels[1]
|
||||
]
|
||||
historic.columns = historic.columns.set_levels(lowercase_technologies, level=1)
|
||||
|
||||
colors = n.carriers.set_index("nice_name").color.where(
|
||||
lambda s: s != "", "lightgrey"
|
||||
|
Loading…
Reference in New Issue
Block a user