From bf9f7d860ac88f3e99ae0dabcf2f3dc41dab1f46 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 07:26:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/gaze/io/csv_test.py | 14 +++++++++----- tests/gaze/io/files/binocular_example.csv | 2 +- tests/gaze/io/files/monocular_example.csv | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/tests/gaze/io/csv_test.py b/tests/gaze/io/csv_test.py index c64264ebe..cd5e35abd 100644 --- a/tests/gaze/io/csv_test.py +++ b/tests/gaze/io/csv_test.py @@ -27,20 +27,24 @@ ('kwargs', 'shape'), [ pytest.param( - {'file': 'tests/gaze/io/files/monocular_example.csv', - 'time_column': 'time', 'pixel_columns': ['x_left_pix', 'y_left_pix']}, + { + 'file': 'tests/gaze/io/files/monocular_example.csv', + 'time_column': 'time', 'pixel_columns': ['x_left_pix', 'y_left_pix'], + }, (10, 2), id='csv_mono_shape', ), pytest.param( - {'file': 'tests/gaze/io/files/binocular_example.csv', + { + 'file': 'tests/gaze/io/files/binocular_example.csv', 'time_column': 'time', 'pixel_columns': ['x_left_pix', 'y_left_pix', 'x_right_pix', 'y_right_pix'], - 'position_columns': ['x_left_pos', 'y_left_pos', 'x_right_pos', 'y_right_pos']}, + 'position_columns': ['x_left_pos', 'y_left_pos', 'x_right_pos', 'y_right_pos'], + }, (10, 3), id='csv_bino_shape', ), - ] + ], ) def test_shapes(kwargs, shape): gaze_dataframe = pm.gaze.from_csv(**kwargs) diff --git a/tests/gaze/io/files/binocular_example.csv b/tests/gaze/io/files/binocular_example.csv index e6672e317..ddfd55ab4 100644 --- a/tests/gaze/io/files/binocular_example.csv +++ b/tests/gaze/io/files/binocular_example.csv @@ -8,4 +8,4 @@ time,x_left_pix,y_left_pix,x_right_pix,y_right_pix,x_left_pos,y_left_pos,x_right 0,0,0,0,0,-23.104783, -13.489493,-23.104783, -13.489493 0,0,0,0,0,-23.104783, -13.489493,-23.104783, -13.489493 0,0,0,0,0,-23.104783, -13.489493,-23.104783, -13.489493 -0,0,0,0,0,-23.104783, -13.489493,-23.104783, -13.489493 \ No newline at end of file +0,0,0,0,0,-23.104783, -13.489493,-23.104783, -13.489493 diff --git a/tests/gaze/io/files/monocular_example.csv b/tests/gaze/io/files/monocular_example.csv index 87891121b..5493f10e4 100644 --- a/tests/gaze/io/files/monocular_example.csv +++ b/tests/gaze/io/files/monocular_example.csv @@ -8,4 +8,4 @@ time,x_left_pix,y_left_pix 0,0,0 0,0,0 0,0,0 -0,0,0 \ No newline at end of file +0,0,0