We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
master
pypsa-eur
conda env update -f envs/environment.yaml
add_existing_baseyear.py of the myopic code branch adds capacity for ["solar", "onwind", "offwind"] carriers twice.
add_existing_baseyear.py
to reproduce: call add_existing_baseyear rule output file, e.g.: snakemake -call results/myopic-master/prenetworks-brownfield/elec_s_2_lv1.0__3H-B_2025.nc
add_existing_baseyear
snakemake -call results/myopic-master/prenetworks-brownfield/elec_s_2_lv1.0__3H-B_2025.nc
and revise dataframe: n.generators[(n.generators.index.str.contains('DE')) & (n.generators.carrier=='solar')]
n.generators[(n.generators.index.str.contains('DE')) & (n.generators.carrier=='solar')]
these lines placed at the end of the script fix the carrier capacities:
for generator in ["solar", "onwind", "offwind"]: mask = n.generators.index.str.contains(f"{generator}-{baseyear}") if len(mask) > 0: n.generators.loc[mask, "p_nom"] = 0.0 n.generators.loc[mask, "p_nom_min"] = 0.0
for a proper fix, the script add_existing_baseyear.py should be thoroughly revised. Potential problems:
The text was updated successfully, but these errors were encountered:
same as #1016
closing this one as "duplicate"
Sorry, something went wrong.
No branches or pull requests
Checklist
master
branch or the latest release. Please indicate.pypsa-eur
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
add_existing_baseyear.py
of the myopic code branch adds capacity for ["solar", "onwind", "offwind"] carriers twice.to reproduce: call
add_existing_baseyear
rule output file, e.g.:snakemake -call results/myopic-master/prenetworks-brownfield/elec_s_2_lv1.0__3H-B_2025.nc
and revise dataframe:
n.generators[(n.generators.index.str.contains('DE')) & (n.generators.carrier=='solar')]
Possible quick fix:
these lines placed at the end of the script fix the carrier capacities:
For a proper fix:
for a proper fix, the script
add_existing_baseyear.py
should be thoroughly revised. Potential problems:The text was updated successfully, but these errors were encountered: