mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-05-14 06:31:11 +00:00
parent
963a382362
commit
506d7a7c70
3 changed files with 72 additions and 112 deletions
|
@ -38,13 +38,8 @@ def get_nsims(args, paths):
|
|||
"""
|
||||
Get simulation indices from the command line arguments.
|
||||
"""
|
||||
try:
|
||||
from_quijote_backup = args.from_quijote_backup
|
||||
except AttributeError:
|
||||
from_quijote_backup = False
|
||||
|
||||
if args.nsims is None or args.nsims[0] == -1:
|
||||
nsims = paths.get_ics(args.simname, from_quijote_backup)
|
||||
nsims = paths.get_ics(args.simname)
|
||||
else:
|
||||
nsims = args.nsims
|
||||
return list(nsims)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue