Skip to content

Conversation

@garrettwrong
Copy link
Collaborator

The MeanEstimation fails to converge at higher resolutions for experimental data (189 and higher) in single precision. I believe this is probably related to the accuracy of the basis in these conditions, but there is more work to be done there at another time.

This small PR allows RelionSource to upcast images and supporting data as doubles to be consumed by other components. It adds some tests checking the dtype override occurs.

This resolved for 189 pixel reconstructions and is currently being tested at 380. Will update, WIP draft for now.

@garrettwrong garrettwrong added bug Something isn't working enhancement New feature or request labels Jan 30, 2024
@garrettwrong garrettwrong self-assigned this Jan 30, 2024
@codecov
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c69be08) 88.82% compared to head (244304c) 88.82%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1079   +/-   ##
========================================
  Coverage    88.82%   88.82%           
========================================
  Files          126      126           
  Lines        12024    12028    +4     
========================================
+ Hits         10680    10684    +4     
  Misses        1344     1344           

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

@garrettwrong
Copy link
Collaborator Author

Closes #871 .

@garrettwrong
Copy link
Collaborator Author

The 380px reconstruction of 10073 just completed successfully with doubles using a similar branch. I will setup to retest with the exact code in this PR. (Experiment was started before the code/PR were made).

@garrettwrong
Copy link
Collaborator Author

Full resolution mean estimation of 10073 was successful using the published (Relion) shifts and rotations in combination with the doubles patch in this PR.

Opening it up for consideration.

Screenshot 2024-02-02 at 9 24 06 AM

@garrettwrong garrettwrong requested a review from j-c-c February 2, 2024 14:28
Copy link
Collaborator

@j-c-c j-c-c left a comment

Choose a reason for hiding this comment

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

Looks good! It's nice it only took a couple lines. Just one question.

@garrettwrong garrettwrong requested a review from j-c-c February 7, 2024 18:55
Copy link
Collaborator

@j-c-c j-c-c left a comment

Choose a reason for hiding this comment

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

LGTM!

@garrettwrong garrettwrong marked this pull request as ready for review February 8, 2024 13:34
@garrettwrong garrettwrong requested a review from janden as a code owner February 8, 2024 13:34
Copy link
Collaborator

@janden janden left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks!

@garrettwrong garrettwrong merged commit 39d269a into develop Feb 8, 2024
@garrettwrong garrettwrong deleted the rln_dbl branch February 8, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants