Skip to content

Commit

Permalink
Add to progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-bushuiev committed Jul 25, 2024
1 parent 3d45686 commit 87e9f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppiref/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 87e9f15

Please sign in to comment.