Skip to content

Commit 636ed78

Browse files
PauBadiaMclaude
andcommitted
Make tqdm progress bar compact in _download
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2170bc5 commit 636ed78

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning][].
1515

1616
### Changes
1717
- Refactored `ds.ensmbl_to_symbol` to reuse `_download` and fixed mirror fallback to actually switch between Ensembl mirrors
18+
- Made `tqdm` progress bar compact in `_download`
1819

1920
### Bugfixes
2021
- Fixed `pl.dotplot` ignoring `vcenter=0` due to falsy check (#293)

src/decoupler/_download.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ def _download_chunks(
2626
total = r.headers.get("Content-Length")
2727
total = int(total) if total and total.isdigit() else None
2828
with tqdm(
29-
total=total, unit="B", unit_scale=True, unit_divisor=1024, desc="Progress", disable=not verbose
29+
total=total,
30+
unit="B",
31+
unit_scale=True,
32+
unit_divisor=1024,
33+
desc="Progress",
34+
disable=not verbose,
35+
bar_format="{l_bar}{bar:20}{r_bar}",
3036
) as pbar:
3137
for chunk in r.iter_content(chunk_size=1024 * 64):
3238
if not chunk:

0 commit comments

Comments
 (0)