Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Sep 16, 2024
1 parent 6ba7271 commit d96f465
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_integration/test_kinematics_vector_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
)
@pytest.mark.parametrize(
"kinematic_variable, expected_2D_pol_array_per_individual",
"kinematic_variable, expected_kinematics_polar",
[
(
"displacement",
Expand Down Expand Up @@ -48,16 +48,16 @@
(
"acceleration",
[
np.zeros((10, 2)),
np.zeros((10, 2)),
np.zeros((10, 2)), # Individual 0
np.zeros((10, 2)), # Individual 1
],
),
],
)
def test_cart2pol_transform_on_kinematics(
valid_dataset_uniform_linear_motion,
kinematic_variable,
expected_2D_pol_array_per_individual,
expected_kinematics_polar,
request,
):
"""Test transformation between Cartesian and polar coordinates
Expand All @@ -69,7 +69,7 @@ def test_cart2pol_transform_on_kinematics(

# Build expected data array
expected_array_pol = xr.DataArray(
np.stack(expected_2D_pol_array_per_individual, axis=1),
np.stack(expected_kinematics_polar, axis=1),
# Stack along the "individuals" axis
dims=["time", "individuals", "space"],
)
Expand Down

0 comments on commit d96f465

Please sign in to comment.