Skip to content

Commit 6fbf600

Browse files
committed
change tqdm in ecco_download.py, too
1 parent 489630e commit 6fbf600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tutorials_as_Jupyter_Notebooks/ecco_download.py

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

140140
# tqdm makes a cool progress bar
141-
results = list(tqdm(executor.map(download_file, dls, repeat(download_dir), repeat(force)), total=len(dls)))
141+
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))
142142

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

0 commit comments

Comments
 (0)