mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-06-28 10:51:10 +00:00
parent
963a382362
commit
506d7a7c70
3 changed files with 72 additions and 112 deletions
|
@ -188,8 +188,8 @@ if __name__ == "__main__":
|
|||
help="Field in RSP?")
|
||||
parser.add_argument("--nrand", type=int, required=True,
|
||||
help="Number of rand. positions to evaluate the field")
|
||||
parser.add_argument("--simname", type=str, default="csiborg",
|
||||
choices=["csiborg"], help="Simulation name")
|
||||
parser.add_argument("--simname", type=str, default="csiborg1",
|
||||
choices=["csiborg1"], help="Simulation name")
|
||||
args = parser.parse_args()
|
||||
|
||||
paths = csiborgtools.read.Paths(**csiborgtools.paths_glamdring)
|
||||
|
|
|
@ -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