From 1ff20a4b4301315dded14fab8a0200029c555912 Mon Sep 17 00:00:00 2001 From: jwong-nd Date: Fri, 22 Nov 2024 16:30:54 -0800 Subject: [PATCH] add guard condition --- src/aind_behavior_video_transformation/etl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aind_behavior_video_transformation/etl.py b/src/aind_behavior_video_transformation/etl.py index f3372b9..ec88f78 100644 --- a/src/aind_behavior_video_transformation/etl.py +++ b/src/aind_behavior_video_transformation/etl.py @@ -83,6 +83,9 @@ def _run_compression( error_traces = [] if self.job_settings.parallel_compression: # Execute in-parallel + if len(convert_video_args) == 0: + return + num_jobs = len(convert_video_args) with ProcessPoolExecutor(max_workers=num_jobs) as executor: jobs = [