Skip to content

Commit

Permalink
some more changes for GetTthAzmDsp (no G)
Browse files Browse the repository at this point in the history
  • Loading branch information
vondreele committed Sep 2, 2024
1 parent 79e2e75 commit c7a30ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GSASII/GSASIIplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8276,7 +8276,7 @@ def OnImPlotKeyPress(event):
if not (event.xdata and event.ydata): return
xpos = event.xdata
ypos = event.ydata
tth,azm,D,dsp = G2img.GetTthAzmDsp2(xpos,ypos,Data)
tth,azm,dsp = G2img.GetTthAzmDsp2(xpos,ypos,Data)
G2frame.calibDmin.SetValue(dsp)
elif event.key in ['x',]:
Data['invert_x'] = not Data['invert_x']
Expand Down Expand Up @@ -8321,7 +8321,7 @@ def OnDragIntBound(event):
# mouse is outside window. Could abort the movement,
# for now ignore the movement until it moves back in
return
tth,azm,D,dsp = G2img.GetTthAzmDsp2(event.xdata,event.ydata,Data)
tth,azm,dsp = G2img.GetTthAzmDsp2(event.xdata,event.ydata,Data)
itemPicked = str(G2frame.itemPicked)
if 'Itth' in itemPicked:
Data['IOtth'][0] = max(tth,0.001)
Expand Down Expand Up @@ -8455,7 +8455,7 @@ def OnDragMask(event):
wave = Data['wavelength']
itemNum = G2frame.itemPicked.itemNumber
tth,azm,thick = Masks['Arcs'][itemNum]
tthN,azmN,D,dsp = G2img.GetTthAzmDsp2(Xpos,Ypos,Data)
tthN,azmN,dsp = G2img.GetTthAzmDsp2(Xpos,Ypos,Data)
if event.button == 1:
if pickType == 'ArcInner':
angO = angI = tthN
Expand Down

0 comments on commit c7a30ac

Please sign in to comment.