Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial stage position #294

Merged
merged 8 commits into from
Jan 3, 2023
Merged

Conversation

AdvancedImagingUTSW
Copy link
Collaborator

This is meant to address our desire to not have the stage go to a default position every time we boot the software. Previously, when we did this, there was a chance for stage crashing. Issue #289

I tried to clean up the code for the following:
stage_asi.py
stage_base.py
stage_galvo.py
stage_pi.py
stage_synthetic.py

Still need to go through the following:
stage_mcl.py
stage_tl_kcube_inertial.py
stage_sutter.py

zacsimile and others added 5 commits January 2, 2023 12:12
Fix for #289 - for ax in self.axes... setattr was starting the position for the stage. Switched to None to initialize the attribute, without moving the stage.

Booted up a semi synthetic configuration (duplicated original configuration.yml file) so that I could remove most everything but the stages.  Couple small things discovered along the way.

In auto_redial, called device_type instead of cam_type.

SyntheticCamera lacked the attribute calculate_readout_time

Removed relative offset positions for stage from configuration file.

Next, moving to refactor and cleanup stage code.
PIStage and StageBase cleaned up.

Co-Authored-By: Kevin Dean <[email protected]>
Fixed copyright """ -> #

Removed any references to inner stage position dictionaries or relative moves as I also did in the Physik and StageBase classes.

Co-Authored-By: Kevin Dean <[email protected]>
I am a little nervous about removing this call from report_position():
self.update_position_dictionaries()

Given that we only have one position dictionary, I removed this method.  Now, I only stay self.create_position_dictionary.

And in microscope.py, we call report_position...

Just an FYI, in case something is off.  I cannot test on this machine.

Also added a few things to the initialization that were not provided in the __init__ section.

Co-Authored-By: Kevin Dean <[email protected]>
Cleaning up unnecessary items in the configuration file...

I think we can get rid of velocity too, but this might actually be useful given some of the other discussions we are having with a continuous scanning acquisition mode.

Co-Authored-By: Kevin Dean <[email protected]>
@zacsimile zacsimile self-requested a review January 3, 2023 20:10
@AdvancedImagingUTSW AdvancedImagingUTSW merged commit 16cb436 into develop Jan 3, 2023
@AdvancedImagingUTSW AdvancedImagingUTSW deleted the initial_stage_position branch December 15, 2023 01:37
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