From b0752efdf44725196c8d7edb3f0cc7924117ce00 Mon Sep 17 00:00:00 2001 From: rstiskalek Date: Thu, 27 Apr 2023 09:21:00 +0100 Subject: [PATCH] fix indexing bug --- scripts/fit_profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fit_profiles.py b/scripts/fit_profiles.py index 3714251..b1aa68f 100644 --- a/scripts/fit_profiles.py +++ b/scripts/fit_profiles.py @@ -126,7 +126,7 @@ for i, nsim in enumerate(nsims): _out["r"] = r[mask] _out["M"] = obj["M"][mask] - out[str(clumps_cat["index"][i])] = _out + out[str(clumps_cat["index"][j])] = _out # Finished, so we save everything. fout = paths.radpos_path(nsnap, nsim)