Skip to content

Commit 489630e

Browse files
committed
changed tqdm so that it shows # instead of ascii block, needed to convert tutorials to pdf
1 parent 1f49bb1 commit 489630e

File tree

2 files changed

+47
-111
lines changed

2 files changed

+47
-111
lines changed

ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/Tutorial_Python3_Jupyter_Notebook_Downloading_ECCO_Datasets_from_PODAAC.ipynb

Lines changed: 46 additions & 110 deletions
Large diffs are not rendered by default.

ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/ecco_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def download_files_concurrently(dls, download_dir, force=False):
135135
with ThreadPoolExecutor(max_workers=max_workers) as executor:
136136

137137
# tqdm makes a cool progress bar
138-
results = list(tqdm(executor.map(download_file, dls, repeat(download_dir), repeat(force)), total=len(dls)))
138+
results = list(tqdm(executor.map(download_file, dls, repeat(download_dir), repeat(force)), total=len(dls), desc='DL Progress', ascii=True, ncols=75, file=sys.stdout))
139139

140140
# add up the total downloaded file sizes
141141
total_download_size_in_bytes = np.sum(np.array(results))

0 commit comments

Comments
 (0)