Update Snakefile
This commit is contained in:
parent
c4423d43a8
commit
65e35135e1
20
Snakefile
20
Snakefile
@ -201,19 +201,19 @@ rule build_renewable_profiles:
|
|||||||
benchmark: "benchmarks/build_renewable_profiles_{technology}"
|
benchmark: "benchmarks/build_renewable_profiles_{technology}"
|
||||||
threads: ATLITE_NPROCESSES
|
threads: ATLITE_NPROCESSES
|
||||||
resources: mem_mb=ATLITE_NPROCESSES * 5000
|
resources: mem_mb=ATLITE_NPROCESSES * 5000
|
||||||
|
wildcard_constraints: technology="solar|onwind|offwind-ac|offwind-dc"
|
||||||
script: "scripts/build_renewable_profiles.py"
|
script: "scripts/build_renewable_profiles.py"
|
||||||
|
|
||||||
|
|
||||||
if 'hydro' in config['renewable'].keys():
|
rule build_hydro_profile:
|
||||||
rule build_hydro_profile:
|
input:
|
||||||
input:
|
country_shapes='resources/country_shapes.geojson',
|
||||||
country_shapes='resources/country_shapes.geojson',
|
eia_hydro_generation='data/bundle/EIA_hydro_generation_2000_2014.csv',
|
||||||
eia_hydro_generation='data/bundle/EIA_hydro_generation_2000_2014.csv',
|
cutout="cutouts/" + config["renewable"]['hydro']['cutout'] + ".nc"
|
||||||
cutout="cutouts/" + config["renewable"]['hydro']['cutout'] + ".nc"
|
output: 'resources/profile_hydro.nc'
|
||||||
output: 'resources/profile_hydro.nc'
|
log: "logs/build_hydro_profile.log"
|
||||||
log: "logs/build_hydro_profile.log"
|
resources: mem_mb=5000
|
||||||
resources: mem_mb=5000
|
script: 'scripts/build_hydro_profile.py'
|
||||||
script: 'scripts/build_hydro_profile.py'
|
|
||||||
|
|
||||||
|
|
||||||
rule add_electricity:
|
rule add_electricity:
|
||||||
|
Loading…
Reference in New Issue
Block a user