Skip to content

Conversation

@stephen-riggs
Copy link
Contributor

The tilt axis is present in the mdoc files. While it isn't required for tomogram alignment, AreTomo seems less prone to predicting wrong axes when one is provided

@stephen-riggs stephen-riggs self-assigned this Mar 7, 2025
@codecov
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 28.64%. Comparing base (625ca1f) to head (81285d6).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #505      +/-   ##
==========================================
+ Coverage   28.62%   28.64%   +0.01%     
==========================================
  Files          78       78              
  Lines       10219    10223       +4     
  Branches     1354     1354              
==========================================
+ Hits         2925     2928       +3     
- Misses       7194     7195       +1     
  Partials      100      100              
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

"frame_count": environment.data_collection_parameters.get(
"frame_count", 0
),
"tilt_axis": environment.data_collection_parameters.get(
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the rationale behind defaulting to 85 degrees?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typically the tilt axis is around that, on our microscopes it seems to be between about 83 and 87 degrees. This value gets sent to AreTomo which takes is as an initial guess to refine from, so it doesn't need to be exact

Copy link
Contributor

@tieneupin tieneupin left a comment

Choose a reason for hiding this comment

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

Other than a question about the choice of default value for the angle, looks good!

mdoc_metadata["experiment_type"] = "tomography"
mdoc_metadata["voltage"] = float(mdoc_data["Voltage"])
mdoc_metadata["frame_count"] = int(mdoc_data_block["NumSubFrames"])
mdoc_metadata["tilt_axis"] = float(mdoc_data["RotationAngle"])
Copy link
Contributor

Choose a reason for hiding this comment

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

"RotationAngle" is found in mdoc_data_block, not mdoc_data

@tieneupin
Copy link
Contributor

With that mdoc_data_block fix, this branch is working and ready to merge.

@stephen-riggs stephen-riggs merged commit ed5fb64 into main Mar 11, 2025
17 checks passed
@stephen-riggs stephen-riggs deleted the tomo-rotation branch March 11, 2025 12:09
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