Skip to content

Shutter Pull Request #1092

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

Merged
merged 44 commits into from
Apr 25, 2025
Merged

Conversation

Daniel-Buckelew
Copy link
Contributor

Pull request for the shutter changes from etagivan.

vmcspadden and others added 30 commits February 26, 2025 12:25
turns lasers on and off, sets the lasers power
ASI Shutter passing all tests on our side.
Added single axis commands in Navigate, both for creating the waveforms, and initiating the axis output.
As discussed with Dr Dean, minor changes to be more agreeable with Navigate and code formatting.
Copy link
Contributor

@Copilot 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 pull request implements shutter control changes for ASI devices by adding a dedicated shutter class and corresponding API controller methods, along with updating configuration options.

  • Introduces the ASIShutter class with methods to connect, open, and close the shutter.
  • Adds logic_card_on and logic_card_off methods to the TigerController API for shutter operations.
  • Updates configuration widgets with "port" and "axis" options to support shutter hardware settings.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/navigate/model/devices/shutter/asi.py Added ASIShutter class and shutter control methods
src/navigate/model/devices/APIs/asi/asi_tiger_controller.py Added logic for turning the logic card on and off
src/navigate/config/configuration_database.py Included new configuration keys for ASI shutter hardware
Comments suppressed due to low confidence (2)

src/navigate/model/devices/shutter/asi.py:49

  • The class docstring describes this as 'ShutterTTL Class' which is inconsistent with the class name ASIShutter. Please update the docstring for clarity.
class ASIShutter(ShutterBase, SerialDevice):

src/navigate/model/devices/APIs/asi/asi_tiger_controller.py:942

  • [nitpick] The parameter 'axis' is annotated as a string, but it is immediately converted to an integer for offset calculation. Consider updating the type hint to int for clarity.
def logic_card_on(self, axis : str):

Copy link
Collaborator

@AdvancedImagingUTSW AdvancedImagingUTSW left a comment

Choose a reason for hiding this comment

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

Looks great.

@AdvancedImagingUTSW
Copy link
Collaborator

Ideally, future PRs will include the changes to the documentation that outline that this device is available @Daniel-Buckelew. Otherwise, looks great. Thank you.

@AdvancedImagingUTSW AdvancedImagingUTSW merged commit ce1bbd5 into TheDeanLab:develop Apr 25, 2025
1 check 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.

6 participants