-
Notifications
You must be signed in to change notification settings - Fork 38
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
MovementUpdater: update FOV position and position_after_move signals and slots #60
base: master
Are you sure you want to change the base?
Conversation
software/control/widgets.py
Outdated
@@ -3729,13 +3729,13 @@ def update_well_coordinates(self, selected): | |||
elif self.scanCoordinates.has_regions(): | |||
self.scanCoordinates.clear_regions() | |||
|
|||
def update_live_coordinates(self, x, y): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this PR to just contain the update_live_coordinates
changes in this file? I think the others are unrelated or already in master.
the draw_current_fov
changes look like they could be okay, but I think the and
is just replicating previous logic - did something change there?
self.stage.move_y_to(cached_pos.y_mm) | ||
self.stage.move_z_to(cached_pos.z_mm) | ||
|
||
if ENABLE_WELLPLATE_MULTIPOINT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the duplication here on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sohamazing I think this is duplicated here. Is that on purpose?
19b9bf4
to
589de99
Compare
…inates (position_after_move signal) fix move from well selector double click move to cached position on startup no longer hidden behind HOMING flags
589de99
to
aed427f
Compare
@@ -850,7 +849,7 @@ def makeConnections(self): | |||
if ENABLE_FLEXIBLE_MULTIPOINT: | |||
self.objectivesWidget.signal_objective_changed.connect(self.flexibleMultiPointWidget.update_fov_positions) | |||
# TODO(imo): Fix position updates after removal of navigation controller | |||
self.movement_updater.position_after_move.connect(self.navigationViewer.draw_fov_current_location) | |||
self.movement_updater.position.connect(self.navigationViewer.draw_fov_current_position) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this definitely okay to do from a performance perspective? I think we had some issues with this causing way too many renders (but it might have just been for the scan grid preview case).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The duplicate lines bit at least needs to be addressed.
Also, the title of this implies the only change here would be the position_after_move
to position
signal swap, but there's a lot more than that. It'd be good to change the title to match.
fixed issues position update signals:
welplateMultiPointWIdget.update_live_coordinates(self, pos: squid.abc.Pos):
navigationViewer.draw_fov_current_position(self, pos: squid.abc.Pos)
move to cached position after boot