Skip to content

Conversation

@jeskesen
Copy link
Collaborator

@jeskesen jeskesen commented Oct 8, 2025

Merge Ivan's changes to O3 refocus into pymmcore-plus development branch. As a side-effect, this gets O3 working in pymmcore-plus.

picaq and others added 8 commits June 24, 2025 19:05
Update author metadata format in CITATION.cff
* add stir_plate CLI

* docs and check for empty pos list

* use logging instead of click.echo

* style
* check min exp time

* check for demo mode after validating illumination.csv file

* bugfixes and extensions

* bugfix

* style
* abort stalled O3 autofocus

* add note on hardcoded value
* add extra logging and make sure O3 will not run outside of travel range

* fix bug in galvo positioning during o3 refocus

* set o3 stage position at beginning of new acquisition
y_size = self.mmc.getImageHeight()

if output_path:
if False: #output_path:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will be undone in a subsequent zarr-focused PR.

@jeskesen jeskesen requested a review from ieivanov October 18, 2025 00:56
Copy link
Collaborator

@ieivanov ieivanov left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good to me. The O3 autofocus currently is a fragile and evolving feature. I just merged #205 which reflects the latest use case. You're welcome to pull these changes in this PR or open a separate one. A bit more context, we've deprecated the KinesisPiezoMotor stage, and we are currently setting use_pycromanager=False in acquire_ls_defocus_stack, i.e. using mmc directly to fetch images rather than running a pycromanager acquisition. We've found that pycromanager acquisitions would stall infrequently, but often enough to break multi-day acquisitions, and getting images through mmc directly is more robust; this will probably be better with pymmcore-plus. All in all, after the mantis rebuild we discussed we won't be running O3 autofocus as it currently stands, so it's OK if you don't worry much about it at this point.

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