mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-07-12 08:53:04 +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.
|
# For no-field read in Carrick+2015 but then zero it.
|
||||||
if simname == "no_field":
|
if simname == "no_field":
|
||||||
simname = "Carrick2015"
|
simname = "Carrick2015"
|
||||||
to_wipe = True
|
to_wipe = simname == "no_field"
|
||||||
else:
|
|
||||||
to_wipe = False
|
|
||||||
|
|
||||||
if not all(0 <= ksim < len(nsims) for ksim in ksims):
|
if not all(0 <= ksim < len(nsims) for ksim in ksims):
|
||||||
raise ValueError(f"Invalid simulation index: `{ksims}`")
|
raise ValueError(f"Invalid simulation index: `{ksims}`")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue