Skip to content

Send alignment quality of tomograms plus tilt angle step to frontend#26

Merged
gfrn merged 6 commits into
masterfrom
improvement/show-alignment-quality
May 29, 2026
Merged

Send alignment quality of tomograms plus tilt angle step to frontend#26
gfrn merged 6 commits into
masterfrom
improvement/show-alignment-quality

Conversation

@stephen-riggs
Copy link
Copy Markdown
Collaborator

@stephen-riggs stephen-riggs commented May 18, 2026

Summary:

Allow the alignment quality to be displayed in the tomogram alignment frontend display, and also send the pixel size in nm and the angle step between tilts.

Changes:

  • Add alignment quality to tomogram response model
  • Add method to store pixel size in nm as well as Angstroms
  • Add method to find the tilt angle step

To test:

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.84%. Comparing base (961df92) to head (8ce2ff2).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   94.81%   94.84%   +0.03%     
==========================================
  Files          46       46              
  Lines        1908     1920      +12     
==========================================
+ Hits         1809     1821      +12     
  Misses         99       99              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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 Send alignment quality of tomograms to frontend Send alignment quality of tomograms plus tilt angle step to frontend May 29, 2026
@stephen-riggs stephen-riggs marked this pull request as ready for review May 29, 2026 07:59
@stephen-riggs stephen-riggs requested a review from gfrn May 29, 2026 07:59
Comment thread src/pato/models/collections.py Outdated
def to_angstrom(cls, v):
return v if v is None else v * 10

@model_validator(mode="after")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I believe this could be rewritten as a computed field instead

https://pydantic.dev/docs/validation/2.3/usage/computed_fields/

@gfrn gfrn self-assigned this May 29, 2026
@gfrn gfrn merged commit c87f59e into master May 29, 2026
12 checks passed
@gfrn gfrn deleted the improvement/show-alignment-quality branch May 29, 2026 14:50
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