Skip to content

Adjust logic to CLEM workflow to support multiple registered atlases#787

Open
tieneupin wants to merge 2 commits intomainfrom
clem-fixes
Open

Adjust logic to CLEM workflow to support multiple registered atlases#787
tieneupin wants to merge 2 commits intomainfrom
clem-fixes

Conversation

@tieneupin
Copy link
Copy Markdown
Contributor

The CLEM workflow currently assumes that all of the datasets stored under the top level folder belong to the same grid. It currently also uses the field of view of the incoming dataset to decide if it is to be treated as an atlas image or a grid. We thus occasionally run into a situation whereby more than one datasets in a grid get registered as atlases, at which point the workflow breaks because the SQL query expects a single matching database entry or no result.

This PR updates the logic slightly so that the database query returns all matching atlas entries, sorted by insertion order, then uses the latest one to perform the ISPyB updates.

@tieneupin tieneupin self-assigned this Apr 20, 2026
@tieneupin tieneupin added bug Something isn't working server Relates to the server component cryo-clem Part of the cryo-CLEM pipeline extension labels Apr 20, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.72%. Comparing base (3d23916) to head (0dd85bc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #787   +/-   ##
=======================================
  Coverage   50.72%   50.72%           
=======================================
  Files          96       96           
  Lines       10059    10060    +1     
  Branches     1322     1322           
=======================================
+ Hits         5102     5103    +1     
  Misses       4690     4690           
  Partials      267      267           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cryo-clem Part of the cryo-CLEM pipeline extension server Relates to the server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant