From 31ae537ea97f5b3a04c13cf948dbec378560f7ce Mon Sep 17 00:00:00 2001 From: Bryna Hazelton Date: Wed, 21 Feb 2024 22:42:10 -0800 Subject: [PATCH] reduce the grid size per a conversation with Josh --- pyuvdata/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyuvdata/utils.py b/pyuvdata/utils.py index 7ad0bc833..8d1ace364 100644 --- a/pyuvdata/utils.py +++ b/pyuvdata/utils.py @@ -4524,7 +4524,10 @@ def find_clusters_grid(baselines, baseline_vecs, tol=1.0): """ bl_gps = {} - grid_size = tol / 2.0 + # reduce the grid size to ensure baselines won't be assigned to a group + # more than the tol away from their location. The factor of 4 is a personal + # communication from Josh Dillon who developed this algorithm. + grid_size = tol / 4.0 p_or_m = (0, -1, 1) epsilons = [[dx, dy, dz] for dx in p_or_m for dy in p_or_m for dz in p_or_m]