Skip to content

Skip processing for SXT stacks where all angles are zero - #843

Merged
stephen-riggs merged 3 commits into
mainfrom
skip-zero-angle-sxt
Jul 28, 2026
Merged

Skip processing for SXT stacks where all angles are zero#843
stephen-riggs merged 3 commits into
mainfrom
skip-zero-angle-sxt

Conversation

@stephen-riggs

@stephen-riggs stephen-riggs commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

It doesn't make sense to treat stacks as tomograms if there are no tilts!

TBC exactly what these are, but they appear to be focus scans on the SXT instrument. AreTomo is able to process them, but Imod is not.
Instead just do the txrm to tiff conversion for any stacks which contain only zero-degree tilts.

There is very little new code here, but a few bits have moved around to reuse the tiff path creation and get the right posts.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.01%. Comparing base (c85221f) to head (129bf8d).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #843      +/-   ##
==========================================
+ Coverage   53.47%   55.01%   +1.53%     
==========================================
  Files         103      103              
  Lines       11071    11465     +394     
  Branches     1476     1566      +90     
==========================================
+ Hits         5920     6307     +387     
+ Misses       4831     4827       -4     
- Partials      320      331      +11     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephen-riggs stephen-riggs changed the title Skip processing for stacks where all angles are zero Skip processing for SXT stacks where all angles are zero Jul 17, 2026
@stephen-riggs
stephen-riggs requested a review from tieneupin July 17, 2026 14:57
Comment thread src/murfey/client/contexts/sxt.py Outdated

@tieneupin tieneupin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new class function's name is in the past tense, but beyond that, everything looks good!

@stephen-riggs
stephen-riggs merged commit f8c4814 into main Jul 28, 2026
14 checks passed
@stephen-riggs
stephen-riggs deleted the skip-zero-angle-sxt branch July 28, 2026 09:38
d-j-hatton pushed a commit that referenced this pull request Aug 6, 2026
It doesn't make sense to treat stacks as tomograms if there are no tilts!

TBC exactly what these are, but they appear to be focus scans on the SXT instrument. AreTomo is able to process them, but Imod is not.
Instead just do the txrm to tiff conversion for any stacks which contain only zero-degree tilts.

There is very little new code here, but a few bits have moved around to reuse the tiff path creation and get the right posts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants