From 4062818dd863d182125ea5f7a759381d81c70c94 Mon Sep 17 00:00:00 2001 From: Siddharth Vaghela Date: Wed, 31 Jan 2024 16:19:18 -0500 Subject: [PATCH] Update extract_images_sync Ensure delay is compared with the sec_per_frame value as a float. --- image_view/scripts/extract_images_sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_view/scripts/extract_images_sync b/image_view/scripts/extract_images_sync index 7a89ed426..6e787d850 100755 --- a/image_view/scripts/extract_images_sync +++ b/image_view/scripts/extract_images_sync @@ -94,7 +94,7 @@ Typical command-line usage: # Decimation is enabled if it is set to greater than # zero. If it is enabled, exit if delay is less than # the decimation rate specified. - if (self.sec_per_frame > 0) and (delay < self.sec_per_frame): + if (self.sec_per_frame > 0) and (delay.to_sec() < self.sec_per_frame): return # Update the current time