Changeset 4826 for trunk


Ignore:
Timestamp:
Feb 23, 2021 3:34:12 PM (2 years ago)
Author:
vondreele
Message:

fix PDF GUI stuff transmission as percent, plot limits for g(r)
fix problem with 'PKS' unit cell indexing

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r4818 r4826  
    842842    ''' convert powder pattern position (2-theta or TOF, musec) to d-spacing
    843843    '''
    844     if 'T' in Inst['Type'][0] or 'PKS' in Inst['Type'][0]:
     844    if 'T' in Inst['Type'][0]:
    845845        return TOF2dsp(Inst,pos)
    846     else:   #'C' or 'B'
     846    else:   #'PKS', 'C' or 'B'
    847847        wave = G2mth.getWave(Inst)
    848848        return wave/(2.0*sind((pos-Inst.get('Zero',[0,0])[1])/2.0))
  • trunk/GSASIIplot.py

    r4820 r4826  
    48314831        Xmax = np.amax(XYlist.T[0])
    48324832        dx = 0.02*(Xmax-Xmin)
    4833         Ymin = np.amin(XYlist.T[1])
    4834         Ymax = np.amax(XYlist.T[1])
     4833        Ymin = np.amin(XYlist.T[1][1:])
     4834        Ymax = np.amax(XYlist.T[1][1:])
    48354835        dy = 0.02*(Ymax-Ymin)
    48364836        try:
  • trunk/GSASIIpwdGUI.py

    r4819 r4826  
    71187118            typeHint=float,OnLeave=AfterChange)
    71197119        geoBox.Add(pack,0)
    7120         geoBox.Add(wx.StaticText(G2frame.dataWindow,label=' Sample transmission: %.3f %%'%(Trans)),0,WACV)   
     7120        geoBox.Add(wx.StaticText(G2frame.dataWindow,label=' Sample transmission: %.3f %%'%(100.*Trans)),0,WACV)   
    71217121        sampleSizer.Add(geoBox,0)
    71227122        return sampleSizer
Note: See TracChangeset for help on using the changeset viewer.