Skip to content

Commit

Permalink
added rounding to the polygon ROI coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
dleshchev authored and estavitski committed Jul 2, 2024
1 parent 8d1ecf0 commit f709351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilatus_tools/widgets/widget_pilatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def gui_polygon_roi_coords(self):
points = []
for handle in obj.getHandles():
y, x = handle.pos()
points.append([x, y])
points.append([np.round(x, 1), np.round(y, 1)])
output[crystal] = points
return output

Expand Down

0 comments on commit f709351

Please sign in to comment.