Skip to content

Register FIB milling progress#815

Merged
tieneupin merged 20 commits into
mainfrom
register-fib-milling-progress
Jun 12, 2026
Merged

Register FIB milling progress#815
tieneupin merged 20 commits into
mainfrom
register-fib-milling-progress

Conversation

@tieneupin

@tieneupin tieneupin commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Adds new database tables + relationships and workflow functions to support the registration and tracking of the FIB milling process. The AutoTEM metadata read by Murfey will now be registered in ISPyB's new MillingStep table, and a local Murfey copy will be created so that Murfey can propagate updates to existing rows.

As part of this PR, the ISPyB schema and Python package versions have been bumped to make use of the newly introduced MillingStep table.

The diff looks huge, but +540 of those lines are due to tests.

tieneupin added 10 commits June 1, 2026 10:57
…hat can be run through the 'feedback_callback' function
…, and added a new table to record a Murfey-side copy of ISPyB's 'MillingStep' table
* GridSquare ID needs to be passed in when creating a new ISPyB record
* Need to check if MillingStep update on ISPyB was successful before updating the corresponding Murfey record
* Get site number from Pydantic model instead of working it out from first priciples again
Comment thread src/murfey/util/models.py Fixed
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.02583% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.98%. Comparing base (9b52fa6) to head (b9ed626).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #815      +/-   ##
==========================================
+ Coverage   52.39%   52.98%   +0.59%     
==========================================
  Files          97       98       +1     
  Lines       10461    10684     +223     
  Branches     1381     1405      +24     
==========================================
+ Hits         5481     5661     +180     
- Misses       4691     4727      +36     
- Partials      289      296       +7     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tieneupin tieneupin force-pushed the register-fib-milling-progress branch from f101567 to b6add3d Compare June 3, 2026 15:59
@tieneupin tieneupin force-pushed the register-fib-milling-progress branch from b9ef174 to acdf448 Compare June 4, 2026 08:37
@tieneupin tieneupin force-pushed the register-fib-milling-progress branch from acdf448 to 6047bd2 Compare June 4, 2026 08:44
@tieneupin tieneupin marked this pull request as ready for review June 4, 2026 12:23

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

Too big to review thoroughly but the general workflow looks fine

"Received the following FIB metadata for registration:\n"
f"{json.dumps(site_info.model_dump(exclude_none=True), indent=2, default=str)}"
)
except Exception:

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.

There's several bare Except clauses in the run function which would be better excepting specific things

@tieneupin tieneupin merged commit 39c27c6 into main Jun 12, 2026
17 checks passed
@tieneupin tieneupin deleted the register-fib-milling-progress branch June 12, 2026 15:49
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