mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2025-04-19 08:20:53 +00:00
Simplify
This commit is contained in:
parent
c0a006fe94
commit
f8effcfc41
1 changed files with 1 additions and 3 deletions
|
@ -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}`")
|
||||
|
|
Loading…
Add table
Reference in a new issue