Skip to content

Commit b65dc90

Browse files
authored
Merge pull request #60 from ECCO-GROUP/tqdm_ascii
Tqdm ascii
2 parents 1f49bb1 + 6fbf600 commit b65dc90

File tree

3 files changed

+48
-112
lines changed

3 files changed

+48
-112
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))

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)