From aac524dd3640fd815017c0be3490afebcb9d30dd Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 3 Nov 2025 09:41:13 +0100 Subject: [PATCH] cooldown of a minute is enough; cache outside cooldown (once cached, no cooldown check needed anymore) --- dap/algos/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap/algos/custom.py b/dap/algos/custom.py index 3e9c689..4d3e648 100644 --- a/dap/algos/custom.py +++ b/dap/algos/custom.py @@ -30,8 +30,8 @@ def calc_custom(results, image, pixel_mask): results.update(res) -@cooldown(30) @functools.cache +@cooldown(60) def load_custom(script): beamline, name = script.split(":")