Skip to content

Commit

Permalink
only use ancient for inputs not outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed May 21, 2024
1 parent 8b303d9 commit 3d5d56a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rules/retrieve.smk
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ if config["enable"]["retrieve"] and config["enable"].get("retrieve_databundle",

rule retrieve_databundle:
output:
ancient(expand("data/bundle/{file}", file=datafiles)),
ancient(directory("data/bundle/jrc-idees-2015")),
expand("data/bundle/{file}", file=datafiles),
directory("data/bundle/jrc-idees-2015"),
log:
"logs/retrieve_databundle.log",
resources:
Expand Down Expand Up @@ -158,7 +158,7 @@ if config["enable"]["retrieve"]:
keep_local=True,
),
output:
ancient("data/shipdensity_global.zip"),
"data/shipdensity_global.zip",
log:
"logs/retrieve_ship_raster.log",
resources:
Expand Down Expand Up @@ -240,7 +240,7 @@ if config["enable"]["retrieve"]:
zip="data/WDPA_shp.zip",
folder=directory("data/WDPA"),
output:
gpkg=ancient("data/WDPA.gpkg"),
gpkg="data/WDPA.gpkg",
run:
shell("cp {input} {params.zip}")
shell("unzip -o {params.zip} -d {params.folder}")
Expand All @@ -265,7 +265,7 @@ if config["enable"]["retrieve"]:
zip="data/WDPA_WDOECM_marine.zip",
folder=directory("data/WDPA_WDOECM_marine"),
output:
gpkg=ancient("data/WDPA_WDOECM_marine.gpkg"),
gpkg="data/WDPA_WDOECM_marine.gpkg",
run:
shell("cp {input} {params.zip}")
shell("unzip -o {params.zip} -d {params.folder}")
Expand Down

0 comments on commit 3d5d56a

Please sign in to comment.