Changeset 2429


Ignore:
Timestamp:
Aug 17, 2016 4:55:08 PM (6 years ago)
Author:
vondreele
Message:

force powder histograms limits to conform to dmin choice for Pawley refinement - invoked upon Pawley create.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2423 r2429  
    68516851    def OnPawleyLoad(event):
    68526852        generalData = data['General']
     6853        histograms = data['Histograms'].keys()
    68536854        cell = generalData['Cell'][1:7]
    68546855        A = G2lat.cell2A(cell)
    68556856        SGData = generalData['SGData']
    68566857        dmin = generalData['Pawley dmin']
     6858        for hist in histograms:
     6859            if 'PWDR' in hist[:4]:
     6860                Id = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,hist)
     6861                inst = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(
     6862                    G2frame,Id, 'Instrument Parameters'))[0]
     6863                limits = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,Id, 'Limits'))
     6864                Tmin = G2lat.Dsp2pos(inst,dmin)
     6865                if 'T' in inst['Type'][0]:
     6866                    limits[1][0] = Tmin
     6867                else:
     6868                    limits[1][1] = Tmin
    68576869        PawleyPeaks = []
    68586870        HKLd = np.array(G2lat.GenHLaue(dmin,SGData,A))
Note: See TracChangeset for help on using the changeset viewer.