From c08517ff896179ed74e60e4140c36e17dbc0e425 Mon Sep 17 00:00:00 2001 From: Fred Thomas Date: Wed, 20 Dec 2023 14:37:57 +0000 Subject: [PATCH] Retain outputs of electricity_grid_damages rule Previously these were marked as temporary files to reduce disk usage. This change may be reverted in the future. --- workflow/rules/exposure/electricity_grid/intersection.smk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/rules/exposure/electricity_grid/intersection.smk b/workflow/rules/exposure/electricity_grid/intersection.smk index 9213dfa1..ceb36d65 100644 --- a/workflow/rules/exposure/electricity_grid/intersection.smk +++ b/workflow/rules/exposure/electricity_grid/intersection.smk @@ -142,8 +142,8 @@ rule electricity_grid_damages: resources: mem_mb = lambda wildcards: threads_for_country(wildcards) * 1_024 * 2.5 output: - exposure = temp(directory("{OUTPUT_DIR}/power/by_country/{COUNTRY_ISO_A3}/exposure/{STORM_SET}/{SAMPLE}/")), - disruption = temp(directory("{OUTPUT_DIR}/power/by_country/{COUNTRY_ISO_A3}/disruption/{STORM_SET}/{SAMPLE}/")), + exposure = protected(directory("{OUTPUT_DIR}/power/by_country/{COUNTRY_ISO_A3}/exposure/{STORM_SET}/{SAMPLE}/")), + disruption = protected(directory("{OUTPUT_DIR}/power/by_country/{COUNTRY_ISO_A3}/disruption/{STORM_SET}/{SAMPLE}/")):we, script: "../../../scripts/intersect/grid_disruption.py"