From 87e9f15e3541e6655c95ba3cfaf97677661047cb Mon Sep 17 00:00:00 2001 From: Anton Bushuiev Date: Thu, 25 Jul 2024 17:19:14 +0200 Subject: [PATCH] Add to progress bar --- ppiref/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppiref/utils/misc.py b/ppiref/utils/misc.py index ab694c5..415de5f 100644 --- a/ppiref/utils/misc.py +++ b/ppiref/utils/misc.py @@ -75,7 +75,7 @@ def download_from_zenodo( response = requests.get(url, stream=True) total_size_in_bytes= int(response.headers.get('content-length', 0)) block_size = 1024 # 1 Kibibyte - progress_bar = tqdm(total=total_size_in_bytes, desc='Downloading', unit='iB', unit_scale=True) + progress_bar = tqdm(total=total_size_in_bytes, desc=f'Downloading to {destination_folder}', unit='iB', unit_scale=True) file_path = os.path.join(destination_folder, f'{stem}.zip') with open(file_path, 'wb') as file: for data in response.iter_content(block_size):