Skip to content
New issue

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

Documentaiton of restrictions of snaphots configuration #1165

Open
fhg-isi opened this issue Jul 18, 2024 · 0 comments
Open

Documentaiton of restrictions of snaphots configuration #1165

fhg-isi opened this issue Jul 18, 2024 · 0 comments

Comments

@fhg-isi
Copy link
Contributor

fhg-isi commented Jul 18, 2024

I tried to run the default configuraiton but only for a single month intead a whole year:

snapshots:
  start: "2013-01-01"
  end: "2013-02-01"
  inclusive: 'left'

Then I got the error below.

=> Please include some hint in the documentation what time ranges are supported.

In the overnight example, a time span of one wee seems to be used:

snapshots:
  start: "2013-03-01"
  end: "2013-03-08"

and there is no error like "AssertionError: Need at least a full year of data (more is better)".

Why is that the case?

ERROR:root:Uncaught exception
Traceback (most recent call last):
  File "/home/projekt-resilient03/pypsa-eur/.snakemake/scripts/tmplgfouogd.build_hydro_profile.py", line 215, in <module>
    inflow = cutout.runoff(
             ^^^^^^^^^^^^^^
  File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.11/site-packages/atlite/convert.py", line 867, in runoff
    assert len(years), "Need at least a full year of data (more is better)"
           ^^^^^^^^^^
AssertionError: Need at least a full year of data (more is better)
RuleException:
CalledProcessError in file /home/projekt-resilient03/pypsa-eur/rules/build_electricity.smk, line 333:
Command 'set -euo pipefail;  /home/projekt-resilient03/conda/envs/pypsa-eur/bin/python3.11 /home/projekt-resilient03/pypsa-eur/.snakemake/scripts/tmplgfouogd.build_hydro_profile.py' returned non-zero exit status 1.
[Thu Jul 18 13:31:21 2024]
[26484] [duration: 2430 ms]
Error in rule build_hydro_profile:
    jobid: 24
    input: resources/country_shapes.geojson, data/eia_hydro_annual_generation.csv, data/eia_hydro_annual_capacity.csv, data/era5-annual-runoff-per-country.csv, cutouts/europe-2013-era5.nc
    output: resources/profile_hydro.nc
    log: logs/build_hydro_profile.log (check log file(s) for error details)
    conda-env: /home/projekt-resilient03/pypsa-eur/.snakemake/conda/fbcf67a17049d57630792c1af3753c25_

Related:

#1164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant