From 83483df912f8823808473c46b0f1c3ce811f4c8a Mon Sep 17 00:00:00 2001 From: sGourapura Date: Mon, 23 Oct 2023 17:21:04 -0400 Subject: [PATCH] iterate.py n-1 needed an int() wrap --- scripts/gcorr/iterate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gcorr/iterate.py b/scripts/gcorr/iterate.py index 173f00d6..f43b165f 100644 --- a/scripts/gcorr/iterate.py +++ b/scripts/gcorr/iterate.py @@ -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 @@ -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)