Skip to content

Commit 4865be0

Browse files
Tweak tqdm titles
1 parent bd53416 commit 4865be0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bio2zarr/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def set_progress(value):
179179
def progress_thread_worker(config):
180180
pbar = tqdm.tqdm(
181181
total=config.total,
182-
desc=config.title,
182+
desc=f"{config.title:>7}",
183183
unit_scale=True,
184184
unit=config.units,
185185
smoothing=0.1,

bio2zarr/vcf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,7 @@ def assert_format_val_equal(vcf_val, zarr_val, vcf_type):
15751575
nt.assert_equal(vcf_val, zarr_val)
15761576

15771577

1578+
# TODO rename to "verify"
15781579
def validate(vcf_path, zarr_path, show_progress=False):
15791580
store = zarr.DirectoryStore(zarr_path)
15801581

@@ -1616,7 +1617,7 @@ def validate(vcf_path, zarr_path, show_progress=False):
16161617
assert pos[start_index] == first_pos
16171618
vcf = cyvcf2.VCF(vcf_path)
16181619
if show_progress:
1619-
iterator = tqdm.tqdm(vcf, total=vcf.num_records)
1620+
iterator = tqdm.tqdm(vcf, desc=" Verify", total=vcf.num_records)
16201621
else:
16211622
iterator = vcf
16221623
for j, row in enumerate(iterator, start_index):

0 commit comments

Comments
 (0)