Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 3, 2025
1 parent d8785b9 commit 16f2a42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/compute_head_direction.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# %%
# The loaded dataset ``ds`` contains two data arrays:``position`` and
# ``confidence``. In this tutorial, we will only use the ``position`` data array.
# ``confidence``. In this tutorial, we will only use the ``position`` data array.
# We use the ``squeeze()`` method to remove
# the redundant ``individuals`` dimension, as there is only one individual
# in this dataset.
Expand Down Expand Up @@ -68,7 +68,7 @@
frame = plt.imread(ds.frame_path)
ax.imshow(frame)

# Plot the trajectory of the head centre
# Plot the trajectory of the head centre
plot_trajectory(
ds.position,
keypoints=["left_ear", "right_ear"],
Expand Down Expand Up @@ -198,7 +198,7 @@
# The coordinate ``rho`` is the norm (i.e., magnitude, length) of the vector.
# In our case, the distance from the midpoint between the ears to the snout.
# The coordinate ``phi`` is the orientation of the head vector relative to the
# positive x-axis, and ranges from :math:`-\pi` to :math:`\pi` in radians
# positive x-axis, and ranges from :math:`-\pi` to :math:`\pi` in radians
# (following the `atan2 <https://en.wikipedia.org/wiki/Atan2>`_ convention).
#
# In the default image coordinate system and with this convention, the angle ``phi`` will be
Expand Down Expand Up @@ -301,7 +301,7 @@
# the angle is zero when the head vector is pointing to the right of the frame.
# We could have also used an alternative reference vector, such as the
# negative y-axis (pointing to the top edge of the frame) by setting
# ``reference_vector=(0, -1)``.
# ``reference_vector=(0, -1)``.

# %%
# Visualise head direction angles
Expand Down

0 comments on commit 16f2a42

Please sign in to comment.