Skip to content

Commit

Permalink
iterate.py n-1 needed an int() wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
sGourapura committed Oct 23, 2023
1 parent 643aa8b commit 83483df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gcorr/iterate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# run dir will be where all the iteration happens to update the reference
rundir = ref_dir + "_iter"

# if rundir doesn't exist or force_restsart, we start from scratch
# if rundir doesn't exist or force_restart, we start from scratch
if not os.path.exists(rundir) or args.force_restart:
iternum = 0

Expand Down Expand Up @@ -197,7 +197,7 @@
# Once transfer function is done, all other seeds can run
print("Submitting jobs for all seeds")
cmd = "python run_xfaster.py --gcorr-config {g} --omp 1 --check-point bandpowers -o {o} -f 1 -n {n} > /dev/null".format(
g=args.gcorr_config, o=run_name_iter, n=g_cfg["gcorr_opts"]["nsim"] - 1
g=args.gcorr_config, o=run_name_iter, n=int(g_cfg["gcorr_opts"]["nsim"]) - 1
)
print(cmd)
os.system(cmd)
Expand Down

0 comments on commit 83483df

Please sign in to comment.