Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Niko Sirmpilatze <[email protected]>
  • Loading branch information
lochhh and niksirbi committed Oct 29, 2024
1 parent 19d6fa2 commit f82b7f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions movement/kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ def compute_pairwise_distances(
Examples
--------
Compute the Euclidean distance (default) for all keypoints
between ``ind1`` and ``ind2`` (i.e. interindividual distance):
Compute the Euclidean distance (default) between ``ind1`` and ``ind2``
(i.e. interindividual distance), for all possible pairs of keypoints.
>>> position = xr.DataArray(
... np.arange(36).reshape(2, 3, 3, 2),
Expand Down Expand Up @@ -520,8 +520,7 @@ def compute_pairwise_distances(
>>> dist_ind1_ind2.sel(ind1="key1", ind2="key2")
Compute the Euclidean distance (default) between ``key1`` and ``key2``
for all pairs of individuals and within each individual
(i.e. interkeypoint distance):
(i.e. interkeypoint distance), for all possible pairs of individuals.
>>> dist_key1_key2 = compute_pairwise_distances(
... position, "keypoints", {"key1": "key2"}
Expand Down

0 comments on commit f82b7f9

Please sign in to comment.