Skip to content

Add ispyb inserts for SXT atlases and ROIs#840

Merged
stephen-riggs merged 28 commits into
mainfrom
sxt-atlas
Jul 14, 2026
Merged

Add ispyb inserts for SXT atlases and ROIs#840
stephen-riggs merged 28 commits into
mainfrom
sxt-atlas

Conversation

@stephen-riggs

Copy link
Copy Markdown
Contributor

Adds the functionality to insert SXT atlas and ROI images into both the murfey and ispyb databases. For ispyb the positions are adjusted to match the thumbnail images so that they display correctly on pato.

Requires atlas locations which weren't previously needed, so makes use of the ImagingSite table in addition to DataCollectionGroup. ROIs are inserted into the SearchMap table (matching GridSquare in ispyb).

Relatively low test coverage as I haven't written tests for the ispyb inserts.

Comment thread src/murfey/server/api/workflow_sxt.py Fixed
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.75676% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.93%. Comparing base (975c2f3) to head (97cee9f).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #840      +/-   ##
==========================================
- Coverage   53.31%   52.93%   -0.38%     
==========================================
  Files         101      102       +1     
  Lines       10933    11279     +346     
  Branches     1452     1572     +120     
==========================================
+ Hits         5829     5971     +142     
- Misses       4788     4959     +171     
- Partials      316      349      +33     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/murfey/client/contexts/sxt.py

@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.

One typo'ed attribute that needs fixing, and some optional suggestions.

Comment thread src/murfey/server/ispyb.py Outdated
Comment thread src/murfey/workflows/sxt/sxt_metadata.py Outdated
Comment thread src/murfey/workflows/sxt/sxt_metadata.py
Comment thread src/murfey/workflows/sxt/sxt_metadata.py
Comment thread src/murfey/workflows/sxt/sxt_metadata.py Outdated
Comment thread src/murfey/server/api/workflow_sxt.py
Comment thread src/murfey/workflows/sxt/sxt_metadata.py
Comment thread src/murfey/workflows/sxt/sxt_metadata.py

@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.

Thanks for addressing my comments! This should be good to merge now.

@stephen-riggs
stephen-riggs merged commit c93a69c into main Jul 14, 2026
17 checks passed
@stephen-riggs
stephen-riggs deleted the sxt-atlas branch July 14, 2026 07:48
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.

3 participants