Skip to content

Commit

Permalink
Update vignette_space.md
Browse files Browse the repository at this point in the history
Suggesting geographic distance to use only the first two entries of locs, in case the third entries are not all equal to each other.
  • Loading branch information
jiseonmin authored and petrelharp committed Nov 8, 2023
1 parent f991488 commit 263ca53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/vignette_space.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
))
```

Expand Down

0 comments on commit 263ca53

Please sign in to comment.