Skip to content

Add starting point for SmartEM integration#748

Open
d-j-hatton wants to merge 5 commits intomainfrom
serialem-smartem
Open

Add starting point for SmartEM integration#748
d-j-hatton wants to merge 5 commits intomainfrom
serialem-smartem

Conversation

@d-j-hatton
Copy link
Contributor

If installed and configured then starting a multigrid controller also adds an Acquisition in SmartEM and triggers the acquisition creation event.

The atlas context is expanded to behave differently under different acquisition software. In the case that SerialEM is being used it will "register" atlases that it sees, meaning they will be registered with SmartEM if installed and configured. The SerialEM context is not accessed by discovery at the moment, as the others are, but is explicitly set in the API calls that trigger the multigrid controller setup. Note this means that this context will be used for all atlas analysers spawned by that controller.

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 41.53846% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.81%. Comparing base (8824e87) to head (86bee44).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #748      +/-   ##
==========================================
- Coverage   46.85%   46.81%   -0.05%     
==========================================
  Files          91       91              
  Lines        9692     9756      +64     
  Branches     1278     1287       +9     
==========================================
+ Hits         4541     4567      +26     
- Misses       4929     4966      +37     
- Partials      222      223       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

atlas_registration_data: AtlasRegistration,
db=murfey_db,
):
if SMARTEM_ACTIVE:
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth logging something here if smartem is not active

Copy link
Contributor

Choose a reason for hiding this comment

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

or if there is not a smartem_api_url

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put some logs in

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