Skip to content

Reset tilt series lengths on repeated tilts, to avoid repeat processing#674

Merged
stephen-riggs merged 1 commit intomainfrom
refresh-mdoc
Oct 8, 2025
Merged

Reset tilt series lengths on repeated tilts, to avoid repeat processing#674
stephen-riggs merged 1 commit intomainfrom
refresh-mdoc

Conversation

@stephen-riggs
Copy link
Contributor

When a tilt series is cancelled on the microscope, an mdoc gets written and we mark the tilt series as complete.
The current behaviour is then that we process the tomogram and do so again for every newly found tilt.

This PR changes the code to remove knowledge of tilt series length when a new tilt is found (i.e. when length exceeds the number in the mdoc). This then means we will not launch processing again until the mdoc is re-written with the correct length.

Should reduce the number of processing times from ntilts+1 to 2.
Will still need some work on the processing side as the processed star files contain duplicated tomograms.

@codecov
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.32%. Comparing base (3756332) to head (3dfbf21).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #674      +/-   ##
==========================================
- Coverage   34.33%   34.32%   -0.01%     
==========================================
  Files          92       92              
  Lines       11155    11157       +2     
  Branches     1474     1474              
==========================================
  Hits         3830     3830              
- Misses       7200     7202       +2     
  Partials      125      125              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

).all()
for ts in tilt_series_db:
ts.processing_requested = False
ts.tilt_series_length = -1
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll need to remind me what -1 is used to indicate in the tilt series database table.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-1 just means we don't know the value

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.

Looks good to me!

@stephen-riggs stephen-riggs merged commit 24d6628 into main Oct 8, 2025
17 checks passed
@stephen-riggs stephen-riggs deleted the refresh-mdoc branch October 8, 2025 08:33
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