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}`")