Skip to content

Commit 7eca54d

Browse files
committed
fix a type error for zip
1 parent 2121f5e commit 7eca54d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python/pycold/imagetool/tile_processing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ def get_stack_date(
240240
]
241241
if low_datebound > 0:
242242
img_dates, img_files = zip(
243-
*filter(lambda x: x[0] >= low_datebound, zip(img_dates, img_files))
243+
*filter(lambda x: x[0] >= low_datebound, zip(tuple(img_dates), tuple(img_files)))
244244
)
245245
if high_datebound > 0:
246246
img_dates, img_files = zip(
247-
*filter(lambda x: x[0] <= high_datebound, zip(img_dates, img_files))
247+
*filter(lambda x: x[0] <= high_datebound, zip(tuple(img_dates), tuple(img_files)))
248248
)
249249
files_date_zip = sorted(zip(img_dates, img_files))
250250
img_files_sorted = [x[1] for x in files_date_zip]

0 commit comments

Comments
 (0)