powerplants: update to ppm >= v0.5.1

This commit is contained in:
Fabian 2022-04-04 18:07:48 +02:00
parent 215d18cb31
commit 7bc9b8012c
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,6 @@ dependencies:
- yaml - yaml
- pytables - pytables
- lxml - lxml
- powerplantmatching>=0.4.8
- numpy - numpy
- pandas - pandas
- geopandas - geopandas
@ -57,3 +56,4 @@ dependencies:
- pip: - pip:
- vresutils>=0.3.1 - vresutils>=0.3.1
- tsam>=1.1.0 - tsam>=1.1.0
- powerplantmatching>=0.5.1

View File

@ -104,7 +104,7 @@ if __name__ == "__main__":
countries = n.buses.country.unique() countries = n.buses.country.unique()
ppl = (pm.powerplants(from_url=True) ppl = (pm.powerplants(from_url=True)
.powerplant.fill_missing_decommyears() .powerplant.fill_missing_decommissioning_years()
.powerplant.convert_country_to_alpha2() .powerplant.convert_country_to_alpha2()
.query('Fueltype not in ["Solar", "Wind"] and Country in @countries') .query('Fueltype not in ["Solar", "Wind"] and Country in @countries')
.replace({'Technology': {'Steam Turbine': 'OCGT'}}) .replace({'Technology': {'Steam Turbine': 'OCGT'}})