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

poi manager: z-position from the scanner is not saved #647

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gui/poimanager/poimangui.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ def create_poi_from_click(self, button, pos):
new_pos = self.poimanagerlogic().roi_origin
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is not needed anymore. Either initialize an empty array here or define the new position in one line like
new_pos = np.array([pos.x(), pos.y(), self.poimanagerlogic().scanner_position[2]])

new_pos[0] = pos.x()
new_pos[1] = pos.y()
new_pos[2] = self.poimanagerlogic().scanner_position[2] #Added by rmgonzal

self.sigAddPoiByClick.emit(new_pos)
return

Expand Down