33
33
__contact__ = "Jerome.Kieffer@ESRF.eu"
34
34
__license__ = "MIT"
35
35
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
36
- __date__ = "28/03/2022 "
36
+ __date__ = "05/01/2023 "
37
37
__status__ = "production"
38
38
39
39
import os
@@ -323,7 +323,7 @@ def _common_creation(self, points, gpt=None, ring=None):
323
323
return gpt
324
324
325
325
def onclick_new_grp (self , yx , ring ):
326
- " * new_grp Right-click (click+n): try an auto find for a ring"
326
+ "new_grp Right-click (click+n): try an auto find for a ring"
327
327
# ydata is a float, and matplotlib display pixels centered.
328
328
# we use floor (int cast) instead of round to avoid use of
329
329
# banker's rounding
@@ -337,7 +337,7 @@ def onclick_new_grp(self, yx, ring):
337
337
logger .warning ("No peak found !!!" )
338
338
339
339
def onclick_single_point (self , yx , ring ):
340
- " * Right-click + Ctrl (click+b): create new group with one single point"
340
+ "Right-click + Ctrl (click+b): create new group with one single point"
341
341
newpeak = self .massif .nearest_peak (yx )
342
342
if newpeak :
343
343
gpt = self ._common_creation ([newpeak ], ring = ring )
@@ -346,7 +346,7 @@ def onclick_single_point(self, yx, ring):
346
346
logger .warning ("No peak found !!!" )
347
347
348
348
def onclick_append_more_points (self , yx , ring ):
349
- " * Right-click + m (click+m): find more points for current group"
349
+ "Right-click + m (click+m): find more points for current group"
350
350
gpt = self .points .get (ring )
351
351
if gpt :
352
352
self .widget .remove_grp (gpt .label , update = False )
@@ -364,7 +364,8 @@ def onclick_append_more_points(self, yx, ring):
364
364
self .onclick_new_grp (yx , ring )
365
365
366
366
def onclick_append_1_point (self , yx , ring = None ):
367
- """ * Right-click + Shift (click+v): add one point to current group
367
+ """Right-click + Shift (click+v): add one point to current group
368
+
368
369
:param xy: 2tuple of coordinates
369
370
"""
370
371
gpt = self .points .get (ring )
@@ -382,7 +383,7 @@ def onclick_append_1_point(self, yx, ring=None):
382
383
self .onclick_new_grp (yx , ring )
383
384
384
385
def onclick_erase_grp (self , yx , ring ):
385
- " * Center-click or (click+d): erase current group"
386
+ "Center-click or (click+d): erase current group"
386
387
gpt = self .points .pop (ring )
387
388
if gpt :
388
389
self .widget .remove_grp (gpt .label , update = True )
@@ -394,7 +395,7 @@ def onclick_erase_grp(self, yx, ring):
394
395
logger .warning ("No group of points for ring %s" , ring )
395
396
396
397
def onclick_erase_1_point (self , yx , ring ):
397
- " * Center-click + 1 or (click+1): erase closest point from current group"
398
+ "Center-click + 1 or (click+1): erase closest point from current group"
398
399
gpt = self .points .get (ring )
399
400
if not gpt :
400
401
self .widget .remove_grp (gpt .label , update = True )
0 commit comments