From 574f4c70f6edf42be674e9fbedc001cb8dbad237 Mon Sep 17 00:00:00 2001 From: barneydobson Date: Mon, 4 Mar 2024 13:06:37 +0000 Subject: [PATCH] Update swmmanywhere/swmmanywhere.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Diego Alonso Álvarez <6095790+dalonsoa@users.noreply.github.com> --- swmmanywhere/swmmanywhere.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swmmanywhere/swmmanywhere.py b/swmmanywhere/swmmanywhere.py index 825d9f9c..db1f4bba 100644 --- a/swmmanywhere/swmmanywhere.py +++ b/swmmanywhere/swmmanywhere.py @@ -41,7 +41,8 @@ def run(model: Path, results_list = [] for var, info in variables.items(): - if var in storevars: + if var not in storevars: + continue # Rather than calling eg Nodes or Links, only call them if they # are needed for storevars because they carry a significant # overhead