STIR icon indicating copy to clipboard operation
STIR copied to clipboard

Rebuilt `plot_sinogram_profiles.py` for 4D tof data

Open robbietuk opened this issue 1 year ago • 1 comments

Changes in this pull request

Built plot_projdata_profiles.py to replace plot_sinogram_profiles.py. This allows for TOF data to be handled. I added significant error handling and what I hope is a better user experience. It does break backwards compatabity.

I need to add a the ability to read v6.0 STIR projection data.

Testing performed

Include a pytest (commented out)

Related issues

#1363

Checklist before requesting a review

  • [] I have performed a self-review of my code
  • [] I have added docstrings/doxygen in line with the guidance in the developer guide
  • [] I have implemented unit tests that cover any new or modified functionality (if applicable)
  • [] The code builds and runs on my machine
  • [] documentation/release_XXX.md has been updated with any functionality change (if applicable)

robbietuk avatar Feb 05 '24 19:02 robbietuk

pytest fails with

ModuleNotFoundError: No module named 'examples'

Could be solved by adding it to the pythonpath first (would need to be done both for GHA and AppVeyor). Alternatively, we do it better via https://github.com/UCL/STIR/issues/1392

KrisThielemans avatar Feb 21 '24 11:02 KrisThielemans