Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def download_files_concurrently(dls, download_dir, force=False):
with ThreadPoolExecutor(max_workers=max_workers) as executor:

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

# add up the total downloaded file sizes
total_download_size_in_bytes = np.sum(np.array(results))
Expand Down
2 changes: 1 addition & 1 deletion Tutorials_as_Jupyter_Notebooks/ecco_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def download_files_concurrently(dls, download_dir, force=False):
with ThreadPoolExecutor(max_workers=max_workers) as executor:

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

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