Skip to content

[fix] METEOR GUI: clean-up for z-stack error#3310

Merged
tepals merged 1 commit intodelmic:masterfrom
pieleric:fix-meteor-gui-clean-up-for-z-stack-error
Jan 6, 2026
Merged

[fix] METEOR GUI: clean-up for z-stack error#3310
tepals merged 1 commit intodelmic:masterfrom
pieleric:fix-meteor-gui-clean-up-for-z-stack-error

Conversation

@pieleric
Copy link
Copy Markdown
Member

@pieleric pieleric commented Dec 22, 2025

Some missing changes from the review of commit d7b3957 (METEOR GUI: handle better incorrect z-stack parameters). Mainly, declare explicitly the attribute in the __init__().

Some missing changes from the review. Mainly, declare explicitly the
attribute in the `__init__()`.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Dec 22, 2025

📝 Walkthrough

Walkthrough

This change enhances error handling for z-stack operations in the CryoAcquiController. A new _zstack_error attribute was introduced to track z-stack validation errors. The _update_acquisition_time method was modified to prevent acquisition and display error messages when z-stack errors exist. The _on_zstack method was updated to set or clear the error state based on operation success or failure, with appropriate state cleanup and timing recalculation.

Possibly related PRs

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: a fix for z-stack error cleanup in METEOR GUI. It's specific and relates directly to the changeset.
Description check ✅ Passed The PR description directly relates to the changeset, explaining that it adds missing changes to handle z-stack errors by declaring an attribute in init().
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses missing changes from a previous review related to z-stack error handling in the METEOR GUI. The main change explicitly declares the _zstack_error attribute in the __init__() method to ensure proper initialization.

Key Changes:

  • Explicitly initialize _zstack_error attribute in the constructor with proper type annotation and documentation
  • Add can_acquire variable initialization in the acquisition time update method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/odemis/gui/cont/acquisition/cryo_acq.py
@tepals
Copy link
Copy Markdown
Contributor

tepals commented Dec 23, 2025

@pieleric what review do these changes relate to?

@pieleric
Copy link
Copy Markdown
Member Author

pieleric commented Jan 6, 2026

@pieleric what review do these changes relate to?

These was comments in the review of PR #3289 (METEOR GUI: handle better incorrect z-stack parameters)

@tepals tepals merged commit e44fd47 into delmic:master Jan 6, 2026
11 checks passed
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