Skip to content

Commit

Permalink
added another progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Feb 9, 2024
1 parent 4b0113f commit 307958f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xnat_ingest/cli/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ def iter_staged_sessions():
# we recreate the project/subject/sesssion directory structure
session_tmp_dir = tmp_download_dir.joinpath(*ids)
session_tmp_dir.mkdir(parents=True, exist_ok=True)
for relpath, obj in objs:
for relpath, obj in tqdm(
objs,
desc=f"Downloading scans in {ids} session from S3 bucket"
):
obj_path = session_tmp_dir.joinpath(*relpath)
obj_path.parent.mkdir(parents=True, exist_ok=True)
logger.debug("Downloading %s to %s", obj, obj_path)
Expand Down

0 comments on commit 307958f

Please sign in to comment.