Changeset 4712 for trunk/GSASIIimgGUI.py


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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.