 Timestamp:
 May 29, 2020 11:31:32 AM (4 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIplot.py
r4431 r4449 8190 8190 if Add: 8191 8191 Indx = GetSelectedAtoms() 8192 try: 8193 if G2frame.phaseDisplay.GetPageText(getSelection()) == 'Map peaks': 8194 for i,peak in enumerate(mapPeaks): 8195 x,y,z = peak[1:4] 8196 X,Y,Z = GLU.gluProject(x,y,z,Model,Proj,View) 8197 XY = [int(X),int(View[3]Y)] 8198 if np.allclose(xy,XY,atol=10) and Z < Zmax: 8199 Zmax = Z 8200 try: 8201 Indx.remove(i) 8202 ClearSelectedAtoms() 8203 for Id in Indx: 8204 SetSelectedAtoms(Id,Add) 8205 except: 8206 SetSelectedAtoms(i,Add) 8207 except: 8192 if G2frame.phaseDisplay.GetPageText(getSelection()) == 'Map peaks': 8193 for i,peak in enumerate(mapPeaks): 8194 x,y,z = peak[1:4] 8195 X,Y,Z = GLU.gluProject(x,y,z,Model,Proj,View) 8196 XY = [int(X),int(View[3]Y)] 8197 if np.allclose(xy,XY,atol=10) and Z < Zmax: 8198 Zmax = Z 8199 try: 8200 Indx.remove(i) 8201 ClearSelectedAtoms() 8202 for Id in Indx: 8203 SetSelectedAtoms(Id,Add) 8204 except: 8205 SetSelectedAtoms(i,Add) 8206 else: 8208 8207 cx = drawingData['atomPtrs'][0] 8209 8208 for i,atom in enumerate(drawAtoms):
Note: See TracChangeset
for help on using the changeset viewer.