Skip to content

Commit

Permalink
fix tqdm progress bar descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Nov 15, 2023
1 parent 5d4f2b0 commit 91c4402
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/coastsat/SDS_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 91c4402

Please sign in to comment.