From 263ca531fc976731c12715aa7c78be0c766387a5 Mon Sep 17 00:00:00 2001 From: jiseonmin Date: Wed, 11 Oct 2023 14:52:46 -0700 Subject: [PATCH] Update vignette_space.md Suggesting geographic distance to use only the first two entries of locs, in case the third entries are not all equal to each other. --- docs/vignette_space.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/vignette_space.md b/docs/vignette_space.md index 8edb3df8..d69670fc 100644 --- a/docs/vignette_space.md +++ b/docs/vignette_space.md @@ -357,8 +357,8 @@ geog_dist = np.repeat(0.0, len(pairs)) locs = ts.individuals_location for k, (i, j) in enumerate(pairs): geog_dist[k] = np.sqrt(np.sum( - (locs[ind_ids[i], :] - - locs[ind_ids[j], :])**2 + (locs[ind_ids[i], :2] + - locs[ind_ids[j], :2])**2 )) ```