aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2022-12-07 16:28:28 +0100
committerThéo de la Hogue2022-12-07 16:28:28 +0100
commit5f7a5f21a26dfb53216f867f16623682e8b9974e (patch)
tree86d4218d4a28729bae524d60d514ddf0c5e18fd3
parent48427847f6a7d48eae7d821da91ce0405271b449 (diff)
downloadargaze-5f7a5f21a26dfb53216f867f16623682e8b9974e.zip
argaze-5f7a5f21a26dfb53216f867f16623682e8b9974e.tar.gz
argaze-5f7a5f21a26dfb53216f867f16623682e8b9974e.tar.bz2
argaze-5f7a5f21a26dfb53216f867f16623682e8b9974e.tar.xz
Replacing pop_first_until by pop_last_before.
-rw-r--r--src/argaze/utils/tobii_segment_aruco_aoi_export.py2
1 files changed, 1 insertions, 1 deletions
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)