Skip to content

Commit

Permalink
fix filter_S2_collection if im_list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Apr 8, 2024
1 parent 35d2fff commit 5f47dcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coastsat/SDS_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,8 @@ def filter_S2_collection(im_list):
im_list_flt: list
filtered list of images
"""
if not im_list:
return im_list

# get datetimes
timestamps = [
Expand Down

0 comments on commit 5f47dcf

Please sign in to comment.