Skip to content

Commit

Permalink
Removed uppercase letters from function names
Browse files Browse the repository at this point in the history
  • Loading branch information
b-peri committed Sep 16, 2024
1 parent 9a156ed commit 00f2dc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_unit/test_kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def invalid_spatial_dimensions_for_head_vector(


@pytest.fixture
def valid_data_array_for_head_vector_with_NaNs(
def valid_data_array_for_head_vector_with_nans(
valid_data_array_for_head_vector,
):
"""Return a position DataArray where position values are NaN for the
Expand Down Expand Up @@ -317,16 +317,16 @@ def test_compute_2d_head_direction_vector_with_invalid_input(
)


def test_nan_behavior_2D_head_vector(
valid_data_array_for_head_vector_with_NaNs,
def test_nan_behavior_2d_head_vector(
valid_data_array_for_head_vector_with_nans,
):
"""Test that ``compute_head_direction_vector()`` generates the
expected output for a valid input DataArray containing ``NaN``
position values at a single time (``1``) and keypoint
(``left_ear``).
"""
head_vector = kinematics.compute_2d_head_direction_vector(
valid_data_array_for_head_vector_with_NaNs, "left_ear", "right_ear"
valid_data_array_for_head_vector_with_nans, "left_ear", "right_ear"
)
assert (
np.isnan(head_vector.values[1, 0, :]).all()
Expand Down

0 comments on commit 00f2dc5

Please sign in to comment.