Changeset 4712


Ignore:
Timestamp:
Jan 4, 2021 2:46:25 PM (3 years ago)
Author:
vondreele
Message:

fix plotting of image limit ellipses - wrong call (GetDetectorXY) used. Should be GetDetectorXY2

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r4709 r4712  
    17621762                dsp0 = wave/(2.0*sind(LUtth[0]/2.0))
    17631763                dsp1 = wave/(2.0*sind(LUtth[1]/2.0))
    1764                 x0 = G2img.GetDetectorXY(dsp0,0.0,Controls)[0]
    1765                 x1 = G2img.GetDetectorXY(dsp1,0.0,Controls)[0]
     1764                x0 = G2img.GetDetectorXY2(dsp0,0.0,Controls)[0]
     1765                x1 = G2img.GetDetectorXY2(dsp1,0.0,Controls)[0]
    17661766                if not np.any(x0) or not np.any(x1):
    17671767                    raise Exception
     
    17971797                    dsp0 = wave/(2.0*sind(LUtth[0]/2.0))
    17981798                    dsp1 = wave/(2.0*sind(LUtth[1]/2.0))
    1799                     x0 = G2img.GetDetectorXY(dsp0,0.0,Controls)[0]
    1800                     x1 = G2img.GetDetectorXY(dsp1,0.0,Controls)[0]
     1799                    x0 = G2img.GetDetectorXY2(dsp0,0.0,Controls)[0]
     1800                    x1 = G2img.GetDetectorXY2(dsp1,0.0,Controls)[0]
    18011801                    if not np.any(x0) or not np.any(x1):
    18021802                        raise Exception
  • trunk/GSASIIplot.py

    r4687 r4712  
    69556955    Azm = np.linspace(*aR)
    69566956    for azm in Azm:
    6957         XY = G2img.GetDetectorXY(Dsp(np.squeeze(angI),wave),azm,Data)
     6957        XY = G2img.GetDetectorXY2(Dsp(np.squeeze(angI),wave),azm,Data)
    69586958        if np.any(XY):
    69596959            xy1.append(XY)      #what about hyperbola
    6960         XY = G2img.GetDetectorXY(Dsp(np.squeeze(angO),wave),azm,Data)
     6960        XY = G2img.GetDetectorXY2(Dsp(np.squeeze(angO),wave),azm,Data)
    69616961        if np.any(XY):
    69626962            xy2.append(XY)      #what about hyperbola
     
    72407240                xyI = []
    72417241                for azm in Azm:
    7242                     xy = G2img.GetDetectorXY(dspI,azm,Data)
     7242                    xy = G2img.GetDetectorXY2(dspI,azm,Data)
    72437243                    if np.any(xy):
    72447244                        xyI.append(xy)
     
    72497249                xyO = []
    72507250                for azm in Azm:
    7251                     xy = G2img.GetDetectorXY(dspO,azm,Data)
     7251                    xy = G2img.GetDetectorXY2(dspO,azm,Data)
    72527252                    if np.any(xy):
    72537253                        xyO.append(xy)
     
    77207720            G2frame.itemPicked = None
    77217721           
    7722     # PlotImage execution starts here
     7722#### PlotImage execution starts here
    77237723    if not len(G2frame.ImageZ):
    77247724        return
     
    78447844                xyI = []
    78457845                for azm in Azm:
    7846                     xy = G2img.GetDetectorXY(dspI,azm,Data)
     7846                    xy = G2img.GetDetectorXY2(dspI,azm,Data)
    78477847                    if np.any(xy):
    78487848                        xyI.append(xy)
     
    78557855                arcxO = []
    78567856                for azm in Azm:
    7857                     xy = G2img.GetDetectorXY(dspO,azm,Data)
     7857                    xy = G2img.GetDetectorXY2(dspO,azm,Data)
    78587858                    if np.any(xy):
    78597859                        xyO.append(xy)
Note: See TracChangeset for help on using the changeset viewer.