Skip to content
Snippets Groups Projects
Commit e07c37e9 authored by David McKenna's avatar David McKenna
Browse files

FIX: Only update tqdm desc if we are using tqdm

parent e01b24df
No related branches found
No related tags found
1 merge request!36Metadata matching
Pipeline #119892 passed
Pipeline: l2json

#119893

    ...@@ -90,6 +90,7 @@ def fetch_minio_entries( ...@@ -90,6 +90,7 @@ def fetch_minio_entries(
    reference=objname if store_filename else "", reference=objname if store_filename else "",
    ) )
    parsed_files += 1 parsed_files += 1
    if tqdm_desc:
    objects.set_description( objects.set_description(
    f"{tqdm_desc} ({parsed_files} file(s) kept, {(1 - (tend + dt - t).total_seconds() / (tend - tstart + 2 * dt).total_seconds()) * 100:.1f}% through the observing window)" f"{tqdm_desc} ({parsed_files} file(s) kept, {(1 - (tend + dt - t).total_seconds() / (tend - tstart + 2 * dt).total_seconds()) * 100:.1f}% through the observing window)"
    ) )
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment