Skip to content

Commit

Permalink
Update poimangui.py
Browse files Browse the repository at this point in the history
#512 (comment)
This bug is affected because POI on the confocal image only saves the x, y position into the roi_origin, and since, by default, the values are set to zero. Since the z position is not saved into the POI file (which should be a fixed value) and take it from ROI origin.
So simply adding new_pos[2] = self.poimanagerlogic().scanner_position[2] line 629 "gui/poimanger/poimangui.py" will fix this bug.
  • Loading branch information
rmgonzal committed Mar 24, 2021
1 parent 3e695f9 commit 11bda2c
Showing 1 changed file with 2 additions and 0 deletions.
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
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

0 comments on commit 11bda2c

Please sign in to comment.