Skip to content

Commit a233671

Browse files
committed
address feedback
1 parent 2c1ddab commit a233671

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rslp/sentinel2_vessels/predict_pipeline.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ def predict_pipeline(
407407
Returns:
408408
list of vessel detections for each task.
409409
"""
410+
if len(tasks) == 0:
411+
# Avoid error with below with checking tasks[0].scene_id.
412+
return []
413+
410414
ds_path = UPath(scratch_path)
411415
ds_path.mkdir(parents=True, exist_ok=True)
412416

0 commit comments

Comments
 (0)