From 91c44028b613124cc6ac1d78b95a7b2979602cb9 Mon Sep 17 00:00:00 2001 From: Sharon Fitzpatrick Date: Wed, 15 Nov 2023 11:02:33 -0800 Subject: [PATCH] fix tqdm progress bar descriptions --- src/coastsat/SDS_download.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/coastsat/SDS_download.py b/src/coastsat/SDS_download.py index 7026c72..39cf053 100644 --- a/src/coastsat/SDS_download.py +++ b/src/coastsat/SDS_download.py @@ -424,11 +424,6 @@ def retrieve_images( bands_id = bands_dict[satname] all_names = [] # list for detecting duplicates # loop through each image - # for i in tqdm( - # range(len(im_dict_T1[satname])), - # desc=f"Downloading Imagery for {satname}", - # leave=True, - # ): pbar = tqdm( range(len(im_dict_T1[satname])), desc=f"Downloading Imagery for {satname}", @@ -631,7 +626,8 @@ def retrieve_images( # download both ms and pan bands from EE pbar.set_description_str( - desc=f"{satname}: Downloading tif for {i} image ", refresh=True + desc=f"{satname}: Downloading tif for {i}th image ", + refresh=True, ) fn_ms, fn_QA = download_tif( image_ee, @@ -772,7 +768,8 @@ def retrieve_images( ) # download the ms, swir and QA bands from EE pbar.set_description_str( - desc=f"{satname}: Downloading tif for {i} image ", refresh=True + desc=f"{satname}: Downloading tif for {i}th image ", + refresh=True, ) fn_ms = download_tif( image_ee,