Skip to content

Commit

Permalink
memory resource requirement for subsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fred committed Sep 16, 2023
1 parent 23fb6f1 commit aa9b954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workflow/rules/preprocess/create_network.smk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ rule gridfinder_to_geoparquet:
"""
input:
geopackage = rules.download_gridfinder.output.electricity_grid_global,
resources:
mem_mb = 4096
output:
linestring = "{OUTPUT_DIR}/power/gridfinder.geoparquet",
rep_point = "{OUTPUT_DIR}/power/gridfinder_rep_point.geoparquet",
Expand Down Expand Up @@ -131,6 +133,8 @@ rule subset_targets:
input:
targets=rules.annotate_targets.output.targets,
admin_bounds="{OUTPUT_DIR}/input/admin-boundaries/admin-level-0.geoparquet"
resources:
mem_mb=8192
output:
targets="{OUTPUT_DIR}/power/by_country/{COUNTRY_ISO_A3}/network/targets.geoparquet",
run:
Expand Down

0 comments on commit aa9b954

Please sign in to comment.