This commit is contained in:
rstiskalek 2024-09-20 14:33:48 +01:00
parent c0a006fe94
commit f8effcfc41

View file

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