From f8effcfc4162af1732f2cb83afd58a4e52e02916 Mon Sep 17 00:00:00 2001 From: rstiskalek Date: Fri, 20 Sep 2024 14:33:48 +0100 Subject: [PATCH] Simplify --- csiborgtools/flow/flow_model.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/csiborgtools/flow/flow_model.py b/csiborgtools/flow/flow_model.py index 5000176..b2fd2d2 100644 --- a/csiborgtools/flow/flow_model.py +++ b/csiborgtools/flow/flow_model.py @@ -190,9 +190,7 @@ class DataLoader: # For no-field read in Carrick+2015 but then zero it. if simname == "no_field": simname = "Carrick2015" - to_wipe = True - else: - to_wipe = False + to_wipe = simname == "no_field" if not all(0 <= ksim < len(nsims) for ksim in ksims): raise ValueError(f"Invalid simulation index: `{ksims}`")