30 questions
0
votes
0
answers
26
views
Validation workflow completely broken (Missing data rules, missing custom_busmap,..) while working with older fork of PyPSA-Eur(the 2050plus-climact)
I am working with a specific, older fork of PyPSA-Eur (the 2050plus-climact repository) to extract solved European network data for a machine learning pipeline.
I am trying to run the validation ...
0
votes
1
answer
76
views
KeyError when converting PyPSA network to PowerFactory using PyPFconvert
I'm trying to convert a grid model network from PyPSA to PowerFactory using the pypfconvert tool.
When I run the following code:
converter.create_project(auto_gen_types=True, sym_av_mode='constv')
I ...
0
votes
0
answers
66
views
Snakemake: Resume workflow safely after interruption (PyPSA-Earth, Gurobi/CBC)
Running snakemake --rerun-incomplete or --keep-incomplete results in an IncompleteFilesException, followed by aggressive deletion of all my output files (.nc, .geojson, etc.).
I clearly specify solver:...
1
vote
1
answer
88
views
How to export to grid in pypsa model
I created a pv station model using pypsa, here is the code:
index = pd.date_range("2024-01-01 00:00", "2024-01-01 23:00", freq="H")
network = pypsa.Network(snapshots=...
0
votes
0
answers
64
views
Why is n.objective not equal to the total cost in this simple example?
Trying to understand the basics of pypsa. Running this simple model:
n = pypsa.Network()
snapshots = pd.date_range("2023-01-01", periods=5, freq="h")
n.set_snapshots(snapshots)
n....
0
votes
1
answer
72
views
Snakemake: opening relative Github files in Snakemake modules OUTSIDE rules
I am developing several snakemake modules that will be imported by other projects, and I'd like to draw a distinction between configuration that users can alter (config/config.yaml) and settings which ...
0
votes
1
answer
330
views
How to log time duration (for each job and total) for a snakemake workflow?
If I run a snakemake workflow, the start time for each job is logged to the console, for example
[Fri Jul 12 10:39:15 2024]
How can I adapt the logging to also show the duration for each job and the ...
1
vote
2
answers
741
views
How to debug scripts for PyPSA-EUR?
I would like to set some VisualStudioCode or PyCharm breakpoints for the script
https://github.com/PyPSA/pypsa-eur/blob/master/scripts/prepare_sector_network.py
and then run and debug it to better ...
1
vote
2
answers
217
views
Snakemake: No storage provider found
While running snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile config/test/config.electricity.yaml in the command line, I got this error message:
WorkflowError in ...
0
votes
0
answers
161
views
PyPSA and Python - Reservoir hydro optimization for one country over mulitple snapshots - issue with code specification
enter image description hereI want to optimize one hydro reservoir over multiple time snaphshots using PyPSA and Python.
On Pypsa support page, I used the Two chained reservoir example as a starting ...
-1
votes
1
answer
184
views
Pypsa and Python - Error when simulating power market of multiple countries
Console error when running code from python:
I am trying to simulate a power market based on three countries using Python and PyPSA.
In this example, the countries are DE, FR, NL.
I did not ...
0
votes
1
answer
156
views
Error in the Snakefile when running tutorial
When I try to follow the tutorial from Pypsa's site "https://pypsa-eur.readthedocs.io/en/latest/tutorial.html" I get an error when I try to do a dry-run for the optimization. I will say that ...
0
votes
1
answer
113
views
The last rule of pypsa-earth "solve_network" does not work properly
I want to use pypsa-earth in China, where rules are typically strictly enforced. However, I am encountering difficulties with the final step of the process, which consistently shows a " returned ...
0
votes
1
answer
93
views
Why does PyPSA/atlite `convert_and_aggregate` aggregate over time by default?
In PyPSA/atlite, all of the high-level methods on cutout for accessing and processing the weather data pass through the convert_and_aggregate method, which first calls the desired conversion function ...
2
votes
2
answers
365
views
PyPSA-eur: Snakemake pipeline killed due to high memory usage in Ubuntu WSL using VS code
For my master's thesis I want to work on further developing the PyPSA-Eur energy system model for the Baltic Sea Region. Before I can work on the development I have to succesfully run the model. I am ...