Skip to content

Commit

Permalink
add guard condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jwong-nd authored and galenlynch committed Nov 28, 2024
1 parent 153d898 commit 1ff20a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aind_behavior_video_transformation/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 1ff20a4

Please sign in to comment.