-
Notifications
You must be signed in to change notification settings - Fork 389
Closed
Labels
Description
Checklist
- I am using the current
masterbranch or the latest release. Please indicate. - I am running on an up-to-date
pypsa-eurenvironment. Update viaconda env update -f envs/environment.yaml.
Describe the Bug
When running the default configuration of PyPSA-Eur for the year 2030 and 144h temporal resolution, I get an error in "prepare_sector_network - add_ice_cars()" that p_set has an index that does not match the passed network snapshots.
Doing the same with 1h temporal resolution works without any problems.
Error Message
INFO:__main__:ice share: 30.0%
ERROR:root:Uncaught exception
Traceback (most recent call last):
File "/mnt/e/H2GMA/Github/Europe/pypsa-eur/.snakemake/scripts/tmpsf1aojnb.prepare_sector_network.py", line 4585, in <module>
add_land_transport(n, costs)
File "/mnt/e/H2GMA/Github/Europe/pypsa-eur/.snakemake/scripts/tmpsf1aojnb.prepare_sector_network.py", line 1993, in add_land_transport
add_ice_cars(n, p_set, shares["ice"], temperature)
File "/mnt/e/H2GMA/Github/Europe/pypsa-eur/.snakemake/scripts/tmpsf1aojnb.prepare_sector_network.py", line 1927, in add_ice_cars
n.add(
File "/home/alex-charly/anaconda3/envs/pypsa-eur/lib/python3.12/site-packages/pypsa/components.py", line 1003, in add
raise ValueError(msg.format(f"DataFrame {k}", "network snapshots"))
ValueError: DataFrame p_set has an index which does not align with the passed network snapshots.
RuleException:
CalledProcessError in file /mnt/e/H2GMA/Github/Europe/pypsa-eur/rules/build_sector.smk, line 1144:
Command 'set -euo pipefail; /home/alex-charly/anaconda3/envs/pypsa-eur/bin/python3.12 /mnt/e/H2GMA/Github/Europe/pypsa-eur/.snakemake/scripts/tmpsf1aojnb.prepare_sector_network.py' returned non-zero exit status 1.
[Mon Nov 11 06:52:26 2024]
Error in rule prepare_sector_network:
jobid: 4
input: resources/profile_39_offwind-ac.nc, resources/profile_39_offwind-dc.nc, resources/profile_39_offwind-float.nc, resources/gas_network_base_s_39.csv, resources/gas_input_locations_s_39.geojson, resources/gas_input_locations_s_39_simplified.csv, resources/snapshot_weightings_base_s_39_elec_lvopt_144h_.csv, resources/networks/base_s_39_elec_lvopt_144h.nc, data/eurostat/Balances-April2023, resources/pop_weighted_energy_totals_s_39.csv, resources/pop_weighted_heat_totals_s_39.csv, resources/shipping_demand_s_39.csv, resources/transport_demand_s_39.csv, resources/transport_data_s_39.csv, resources/avail_profile_s_39.csv, resources/dsm_profile_s_39.csv, resources/co2_totals.csv, data/bundle/eea/UNFCCC_v23.csv, resources/biomass_potentials_s_39_2030.csv, resources/costs_2030.csv, resources/salt_cavern_potentials_s_39.csv, resources/busmap_base_s.csv, resources/busmap_base_s_39.csv, resources/pop_layout_base_s_39.csv, resources/industrial_energy_demand_base_s_39_2040.csv, resources/hourly_heat_demand_total_base_s_39.nc, resources/industrial_production_base_s_39_2040.csv, resources/district_heat_share_base_s_39_2040.csv, resources/heating_efficiencies.csv, resources/temp_soil_total_base_s_39.nc, resources/temp_air_total_base_s_39.nc, resources/cop_profiles_base_s_39_2040.nc, resources/solar_thermal_total_base_s_39.nc
output: results/prenetworks/base_s_39_lvopt_144h__2040.nc
log: results/logs/prepare_sector_network_base_s_39_lvopt_144h__2040.log (check log file(s) for error details)
conda-env: /mnt/e/H2GMA/Github/Europe/pypsa-eur/.snakemake/conda/993f8ff340a18123c38690a5e600c0c5_
Reactions are currently unavailable