From 5f7a5f21a26dfb53216f867f16623682e8b9974e Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 7 Dec 2022 16:28:28 +0100 Subject: Replacing pop_first_until by pop_last_before. --- src/argaze/utils/tobii_segment_aruco_aoi_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/argaze/utils/tobii_segment_aruco_aoi_export.py b/src/argaze/utils/tobii_segment_aruco_aoi_export.py index 7adba2f..d4427c4 100644 --- a/src/argaze/utils/tobii_segment_aruco_aoi_export.py +++ b/src/argaze/utils/tobii_segment_aruco_aoi_export.py @@ -178,7 +178,7 @@ def main(): } # Get nearest head rotation before video timestamp and remove all head rotations before - _, nearest_head_rotation = tobii_ts_head_rotations.pop_first_until(video_ts) + _, nearest_head_rotation = tobii_ts_head_rotations.pop_last_before(video_ts) # Calculate head movement considering only head yaw and pitch head_movement = numpy.array(nearest_head_rotation.value) -- cgit v1.1