Skip to content

Add progress bar to TIFFStackReader via tqdm - #2380

Open
paskino wants to merge 1 commit into
masterfrom
progress-on-TIFF
Open

paskino wants to merge 1 commit into
masterfrom
progress-on-TIFF

Conversation

@paskino

@paskino paskino commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Description

Add a progress bar in TiffStackReader to monitor status of read.

Example Usage

Contribution Notes

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
  • I confirm that the contribution does not violate any intellectual property rights of third parties

Changes

Wrapped for loops with tqdm in TIFFStackReader.

Testing you performed

Please add any demo scripts to https://github.com/TomographicImaging/CIL-Demos/tree/main/misc

Tested locally with

reader = TIFFStackReader(file_name="/mnt/share-private/zippo/Zippotomo_exp_60s/Zippotomo_exp60s_recon/Reconnew_FBP_ram-lak/",
                         file_prefix="image_",
                         mode="bin", 
                         roi={'axis_0': (start, end, step), 'axis_1': (start, end, step), 'axis_2': (start, end, step)})

data60s = reader.read()

It outputs the tqdm output like:
image

Related issues/links

Checklist

  • I have performed a self-review of my code
  • I have added docstrings in line with the guidance in the developer guide
  • I have updated the relevant documentation
  • I have implemented unit tests that cover any new or modified functionality
  • CHANGELOG.md has been updated with any functionality change
  • Request review from all relevant developers

@paskino paskino changed the title add progress to TIFFStackReader via tqdm Add progress bar to TIFFStackReader via tqdm Oct 29, 2026
@paskino
paskino requested a review from casperdcl October 29, 2026 15:13
@paskino paskino added this to CIL work Oct 29, 2026
@github-project-automation github-project-automation Bot moved this to Todo in CIL work Oct 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant