Skip to content

Conversation

@vshekar
Copy link
Collaborator

@vshekar vshekar commented Jan 5, 2026

This pull request introduces support for a "special mount" mode in the application, allowing users to toggle between a standard dewar puck setup and a special puck configuration. The changes include UI updates to select the puck type, logic to handle the configuration switch, and adjustments to the dewar tree view to reflect the selected mode.

User Interface Enhancements:

  • Added radio buttons to the sample tab for selecting between "Special Puck" and "Dewar Puck" modes, with logic to update the configuration and refresh the view when toggled. (gui/control_main.py)
  • Introduced the toggle_special_puck method to update the configuration and trigger a hard refresh of the dewar tree view when the puck type is changed. (gui/control_main.py)

Dewar Tree View Adjustments:

  • Modified the refreshTreeDewarView method to show only one puck and sector when "special mount" mode is enabled, otherwise using the standard configuration. (gui/dewar_tree.py)
  • Added an option for a hard refresh in refreshTreeDewarView, which clears the model before updating, ensuring the view accurately reflects the current configuration. (gui/dewar_tree.py)

Robot Control Logic:

  • Updated the unmountCold function to only park the robot gripper if the robot is online and "special mount" mode is not enabled, preventing unnecessary actions in special mode. (daq_lib.py)

Copy link

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 introduces a "special mount" mode feature to the FMX beamline application, allowing users to toggle between standard dewar puck setup and a special puck configuration. The changes enable dynamic switching of puck display configurations and robot control behavior based on the selected mode.

  • Added UI radio buttons for selecting between "Special Puck" and "Dewar Puck" modes
  • Modified dewar tree view to display only one puck and sector when special mount mode is enabled
  • Updated robot control logic to skip gripper parking in special mount mode

Reviewed changes

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

File Description
gui/control_main.py Added radio button controls for puck type selection and toggle_special_puck method to handle configuration switching
gui/dewar_tree.py Modified refreshTreeDewarView to dynamically adjust puck/sector display based on special_mount_enabled configuration, added hard_refresh parameter
daq_lib.py Updated unmountCold to conditionally skip gripper parking when special mount mode is active

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

@vshekar vshekar requested a review from JunAishima January 14, 2026 00:03
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.

1 participant