PyPSA / pypsa-eur

PyPSA-Eur: A Sector-Coupled Open Optimisation Model of the European Energy System
https://pypsa-eur.readthedocs.io/
338 stars 239 forks source link

Sector tutorial does not work (KeyError: 'fuelwood') #1347

Open fhg-isi opened 1 month ago

fhg-isi commented 1 month ago

Checklist

Describe the Bug

I tried to run

snakemake -call all --configfile config/test/config.overnight.yaml

after I updated pypsa-eur to the current version and get the error shown below. I did not modify the config file.

=> Please update version of technology data in config.yaml

costs:
  year: 2030
  version: v0.9.2

Error Message

[Mon Oct 7 12:20:03 2024] Finished job 34. 63 of 71 steps (89%) done Select jobs to execute... Execute 1 jobs...

[Mon Oct 7 12:20:03 2024] localrule prepare_sector_network: input: resources/test/profile_5_offwind-ac.nc, resources/test/profile_5_offwind-dc.nc, resources/test/profile_5_offwind-float.nc, resources/test/gas_network_base_s_5.csv, resources/test/gas_input_locations_s_5.geojson, resources/test/gas_input_locations_s_5_simplified.csv, resources/test/snapshot_weightings_base_s_5_elec_lv1.5.csv, resources/test/networks/base_s_5_eleclv1.5.nc, data/eurostat/Balances-April2023, resources/test/pop_weighted_energy_totals_s_5.csv, resources/test/pop_weighted_heat_totals_s_5.csv, resources/test/shipping_demand_s_5.csv, resources/test/transport_demand_s_5.csv, resources/test/transport_data_s_5.csv, resources/test/avail_profile_s_5.csv, resources/test/dsm_profile_s_5.csv, resources/test/co2_totals.csv, data/bundle/eea/UNFCCC_v23.csv, resources/test/biomass_potentials_s_5_2030.csv, resources/test/costs_2030.csv, resources/test/salt_cavern_potentials_s_5.csv, resources/test/busmap_base_s.csv, resources/test/busmap_base_s_5.csv, resources/test/pop_layout_base_s_5.csv, resources/test/industrial_energy_demand_base_s_5_2030.csv, resources/test/hourly_heat_demand_total_base_s_5.nc, resources/test/industrial_production_base_s_5_2030.csv, resources/test/district_heat_share_base_s_5_2030.csv, resources/test/heating_efficiencies.csv, resources/test/temp_soil_total_base_s_5.nc, resources/test/temp_air_total_base_s_5.nc, resources/test/cop_profiles_base_s_5.nc, resources/test/solar_thermal_total_base_s_5.nc output: results/test-sector-overnight/prenetworks/base_s_5_lv1.5___2030.nc log: results/test-sector-overnight/logs/prepare_sector_network_base_s_5lv1.52030.log jobid: 4 benchmark: results/test-sector-overnight/benchmarks/prepare_sector_network/base_s_5_lv1.5_2030 reason: Missing output files: results/test-sector-overnight/prenetworks/base_s_5lv1.52030.nc; Input files updated by another job: data/eurostat/Balances-April2023, resources/test/busmap_base_s_5.csv, resources/test/shipping_demand_s_5.csv, resources/test/industrial_energy_demand_base_s_5_2030.csv, resources/test/solar_thermal_total_base_s_5.nc, resources/test/pop_weighted_heat_totals_s_5.csv, resources/test/profile_5_offwind-ac.nc, resources/test/profile_5_offwind-dc.nc, resources/test/profile_5_offwind-float.nc, resources/test/snapshot_weightings_base_s_5_elec_lv1.5__.csv, resources/test/networks/base_s_5_eleclv1.5.nc, resources/test/transport_data_s_5.csv, resources/test/industrial_production_base_s_5_2030.csv, resources/test/transport_demand_s_5.csv, resources/test/dsm_profile_s_5.csv, resources/test/busmap_base_s.csv, resources/test/gas_input_locations_s_5.geojson, resources/test/pop_layout_base_s_5.csv, resources/test/biomass_potentials_s_5_2030.csv, resources/test/avail_profile_s_5.csv, resources/test/gas_network_base_s_5.csv, resources/test/co2_totals.csv, resources/test/gas_input_locations_s_5_simplified.csv, resources/test/district_heat_share_base_s_5_2030.csv, resources/test/heating_efficiencies.csv, resources/test/hourly_heat_demand_total_base_s_5.nc, resources/test/pop_weighted_energy_totals_s_5.csv, resources/test/cop_profiles_base_s_5.nc, resources/test/temp_soil_total_base_s_5.nc, resources/test/salt_cavern_potentials_s_5.csv, resources/test/temp_air_total_base_s_5.nc wildcards: clusters=5, ll=v1.5, opts=, sector_opts=, planning_horizons=2030 resources: tmpdir=/tmp, mem_mb=2000, mem_mib=1908

INFO:pypsa.io:Imported network base_s_5_eleclv1.5.nc has buses, carriers, generators, global_constraints, lines, links, loads, storage_units, stores INFO:main:Removing buses with carrier ['H2'] /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:582: DeprecatedWarning: mremove is deprecated as of 0.31 and will be removed in 1.0. Use n.remove as a drop-in replacement instead. n.mremove(c.name, names) INFO:main:Removing links with carrier ['DC', 'H2 electrolysis', 'H2 fuel cell'] /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:582: DeprecatedWarning: mremove is deprecated as of 0.31 and will be removed in 1.0. Use n.remove as a drop-in replacement instead. n.mremove(c.name, names) INFO:main:Removing generators with carrier ['CCGT', 'biomass', 'oil', 'ror'] /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:582: DeprecatedWarning: mremove is deprecated as of 0.31 and will be removed in 1.0. Use n.remove as a drop-in replacement instead. n.mremove(c.name, names) INFO:main:Removing storage_units with carrier ['PHS', 'battery', 'hydro'] /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:582: DeprecatedWarning: mremove is deprecated as of 0.31 and will be removed in 1.0. Use n.remove as a drop-in replacement instead. n.mremove(c.name, names) INFO:main:Removing stores with carrier ['H2'] /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:582: DeprecatedWarning: mremove is deprecated as of 0.31 and will be removed in 1.0. Use n.remove as a drop-in replacement instead. n.mremove(c.name, names) INFO:main:Added connection cost of 175-175 Eur/MW/a to offwind-dc INFO:main:Added connection cost of 97-97 Eur/MW/a to offwind-ac INFO:main:Added connection cost of 134-134 Eur/MW/a to offwind-float /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:638: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:646: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:661: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:669: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus0 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for bus1 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:698: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. INFO:main:Adding electricity generation /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:512: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd("Bus", nodes, location=location, carrier=carrier, unit=unit) /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:514: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:558: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1124: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( INFO:main:Add hydrogen storage /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1370: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd("Bus", nodes + " H2", location=nodes, carrier="H2", unit="MWh_LHV") /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1372: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( INFO:main:Adding hydrogen fuel cell for re-electrification. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1387: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1461: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( INFO:main:Add natural gas infrastructure, incl. LNG terminals, production, storage and entry-points. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1494: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1570: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus0 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for bus1 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for length is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for capital_cost is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. INFO:main:Add retrofitting options of existing CH4 pipes to H2 pipes. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1591: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( INFO:main:Add options for new hydrogen pipelines. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1615: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1630: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd("Bus", nodes + " battery", location=nodes, carrier="battery", unit="MWh_el") /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1632: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1643: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1655: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1668: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus2 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1711: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus3 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1729: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( INFO:main:Add land transport INFO:main:fuel_cell share: 0% INFO:main:electric share: 30.0% INFO:main:ice share: 70.0% /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1792: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1821: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1832: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1846: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1867: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:512: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd("Bus", nodes, location=location, carrier=carrier, unit=unit) WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:514: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:531: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:539: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus0 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for bus1 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:558: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1929: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1937: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:1945: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus0 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. WARNING:pypsa.components:Single value sequence for bus1 is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. INFO:main:Add heat sector INFO:main:Assumed space heat reduction of 9.00% /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2103: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2152: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2196: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2204: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2214: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2228: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2247: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2264: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2283: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2103: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2152: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2196: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2204: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2214: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2228: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2247: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2264: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2283: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2103: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2152: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2196: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2204: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2214: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2228: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2247: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2264: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2283: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2103: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2152: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2196: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2204: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2214: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2228: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2247: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2264: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2283: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2103: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2152: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2178: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2196: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2204: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2214: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2228: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2247: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2264: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2283: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2302: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2321: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( INFO:main:Add biomass /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2606: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2614: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for location is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2622: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2632: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( WARNING:pypsa.components:Single value sequence for bus is treated as a scalar and broadcasted to all components. It is recommended to explicitly pass a scalar instead. /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py:2695: DeprecatedWarning: madd is deprecated as of 0.31 and will be removed in 1.0. Use n.add as a drop-in replacement instead. n.madd( ERROR:root:Uncaught exception Traceback (most recent call last): File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc return self._engine.get_loc(casted_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'fuelwood'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py", line 4611, in add_biomass(n, costs) File "/home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py", line 2719, in add_biomass marginal_cost=costs.at["fuelwood", "fuel"],


  File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.12/site-packages/pandas/core/indexing.py", line 2575, in __getitem__
    return super().__getitem__(key)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.12/site-packages/pandas/core/indexing.py", line 2527, in __getitem__
    return self.obj._get_value(*key, takeable=self._takeable)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.12/site-packages/pandas/core/frame.py", line 4221, in _get_value
    row = self.index.get_loc(index)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc
    raise KeyError(key) from err
KeyError: 'fuelwood'
RuleException:
CalledProcessError in file /home/projekt-resilient03/pypsa-eur-fresh/rules/build_sector.smk, line 1133:
Command 'set -euo pipefail;  /home/projekt-resilient03/conda/envs/pypsa-eur/bin/python3.12 /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/scripts/tmpug6gpizz.prepare_sector_network.py' returned non-zero exit status 1.
[Mon Oct  7 12:20:08 2024]
Error in rule prepare_sector_network:
    jobid: 4
    input: resources/test/profile_5_offwind-ac.nc, resources/test/profile_5_offwind-dc.nc, resources/test/profile_5_offwind-float.nc, resources/test/gas_network_base_s_5.csv, resources/test/gas_input_locations_s_5.geojson, resources/test/gas_input_locations_s_5_simplified.csv, resources/test/snapshot_weightings_base_s_5_elec_lv1.5__.csv, resources/test/networks/base_s_5_elec_lv1.5_.nc, data/eurostat/Balances-April2023, resources/test/pop_weighted_energy_totals_s_5.csv, resources/test/pop_weighted_heat_totals_s_5.csv, resources/test/shipping_demand_s_5.csv, resources/test/transport_demand_s_5.csv, resources/test/transport_data_s_5.csv, resources/test/avail_profile_s_5.csv, resources/test/dsm_profile_s_5.csv, resources/test/co2_totals.csv, data/bundle/eea/UNFCCC_v23.csv, resources/test/biomass_potentials_s_5_2030.csv, resources/test/costs_2030.csv, resources/test/salt_cavern_potentials_s_5.csv, resources/test/busmap_base_s.csv, resources/test/busmap_base_s_5.csv, resources/test/pop_layout_base_s_5.csv, resources/test/industrial_energy_demand_base_s_5_2030.csv, resources/test/hourly_heat_demand_total_base_s_5.nc, resources/test/industrial_production_base_s_5_2030.csv, resources/test/district_heat_share_base_s_5_2030.csv, resources/test/heating_efficiencies.csv, resources/test/temp_soil_total_base_s_5.nc, resources/test/temp_air_total_base_s_5.nc, resources/test/cop_profiles_base_s_5.nc, resources/test/solar_thermal_total_base_s_5.nc
    output: results/test-sector-overnight/prenetworks/base_s_5_lv1.5___2030.nc
    log: results/test-sector-overnight/logs/prepare_sector_network_base_s_5_lv1.5___2030.log (check log file(s) for error details)
    conda-env: /home/projekt-resilient03/pypsa-eur-fresh/.snakemake/conda/f9a62408dfb934e1f93eb77483dc70fc_

Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2024-10-07T121749.609685.snakemake.log
WorkflowError:
At least one job did not complete successfully.
fhg-isi commented 1 month ago

Related:

https://discord.com/channels/911692131440148490/1282616925553430568/1283047786694316118