Changeset 4903 for trunk/GSASIIplot.py


Ignore:
Timestamp:
May 17, 2021 11:23:03 AM (3 years ago)
Author:
vondreele
Message:

fix 2 issues in HessianLSQ for SVN LinAlgErrors?
fix a typo in G2plot for SASD plot display
change GetTthAzmDsp? --> GeTthAzmDsp2 in G2plot & G2Image
comment old GetTthAzmDsp? code - fails in recent python/numpy versions; replaced by GetTthAzmDsp2
change GetTthAzmG --> GetTthAzm2 in G2image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4895 r4903  
    35913591                            CalcLine = Plot.plot(X,Z/ymax,colors[1],picker=False,label=incCptn('calc'))                 #Ic
    35923592                        else:
    3593                             Plot.plot(X,YB,color=colors[0],marler=pP,
     3593                            Plot.plot(X,YB,color=colors[0],marker=pP,
    35943594                                picker=True,pickradius=3.,clip_on=Clip_on,label=incCptn('obs'))
    35953595                            Plot.plot(X,ZB,colors[2],picker=False,label=incCptn('calc'))
     
    73357335                if (0 <= xpix < sizexy[0]) and (0 <= ypix < sizexy[1]):
    73367336                    Int = G2frame.ImageZ[ypix][xpix]
    7337                 tth,azm,D,dsp = G2img.GetTthAzmDsp(xpos,ypos,Data)
     7337                tth,azm,D,dsp = G2img.GetTthAzmDsp2(xpos,ypos,Data)
    73387338                Q = 2.*math.pi/dsp
    73397339                if G2frame.StrainKey:
     
    74347434                xpos = event.xdata
    74357435                ypos = event.ydata
    7436                 tth,azm,D,dsp = G2img.GetTthAzmDsp(xpos,ypos,Data)
     7436                tth,azm,D,dsp = G2img.GetTthAzmDsp2(xpos,ypos,Data)
    74377437                G2frame.calibDmin.SetValue(dsp)
    74387438            elif event.key in ['x',]:
     
    74797479                # for now ignore the movement until it moves back in
    74807480                return
    7481             tth,azm,D,dsp = G2img.GetTthAzmDsp(event.xdata,event.ydata,Data)
     7481            tth,azm,D,dsp = G2img.GetTthAzmDsp2(event.xdata,event.ydata,Data)
    74827482            itemPicked = str(G2frame.itemPicked)
    74837483            if 'Itth' in itemPicked:
     
    76137613                itemNum = G2frame.itemPicked.itemNumber
    76147614                tth,azm,thick = Masks['Arcs'][itemNum]
    7615                 tthN,azmN,D,dsp = G2img.GetTthAzmDsp(Xpos,Ypos,Data)
     7615                tthN,azmN,D,dsp = G2img.GetTthAzmDsp2(Xpos,Ypos,Data)
    76167616                if event.button == 1:
    76177617                    if pickType == 'ArcInner':
     
    79227922            if not Xpos or not Ypos or Page.toolbar.AnyActive():  #got point out of frame or zoom/pan selected
    79237923                return
    7924             tth,azm,dsp = G2img.GetTthAzmDsp(Xpos,Ypos,Data)[:3]
     7924            tth,azm,dsp = G2img.GetTthAzmDsp2(Xpos,Ypos,Data)[:3]
    79257925            itemPicked = str(G2frame.itemPicked)
    79267926            try:
Note: See TracChangeset for help on using the changeset viewer.