Changeset 2772 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Apr 4, 2017 3:34:02 PM (5 years ago)
Author:
vondreele
Message:

do some speedups of image tiff readers
Modify PlotXY so it sort of behaves for multiple line plots
various fixes for reflectometry calcs & plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r2767 r2772  
    19151915
    19161916def REFDRefine(Profile,ProfDict,Inst,Limits,Substances,data):
    1917     print 'fit REFD data by '+data['Minimizer']
     1917    print 'fit REFD data by '+data['Minimizer']+' using %.2f%% data resolution'%(data['Resolution'][0])
    19181918   
    19191919    def GetModelParms():
     
    19221922        values = []
    19231923        bounds = []
     1924        parmDict['Res'] = data['Resolution'][0]/100.       #%-->decimal
    19241925        for parm in ['Scale','FltBack']:
    19251926            parmDict[parm] = data[parm][0]
     
    19851986        Scale = parmDict['Scale']
    19861987        Nlayers = parmDict['nLayers']
     1988        Res = parmDict['Res']
     1989        Gaus = np.zeros((9,len(Q)))
    19871990        depth = np.zeros(Nlayers)
    19881991        rho = np.zeros(Nlayers)
     
    20062009
    20072010    Q,Io,wt,Ic,Ib,Ifb = Profile[:6]
     2011    if data.get('2% weight'):
     2012        wt = 1./(0.02*Io)**2
    20082013    Qmin = Limits[1][0]
    20092014    Qmax = Limits[1][1]
Note: See TracChangeset for help on using the changeset viewer.