Changeset 3999 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
May 27, 2019 4:07:46 PM (3 years ago)
Author:
toby
Message:

reorg PDF computation/save as non-GUI code, add PDF to scriptable, doc build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3998 r3999  
    50075007#        import scipy.optimize as opt
    50085008        wx.BeginBusyCursor()
    5009 #        Min,Init,Done = SetupPDFEval()
    5010 #        xstart = Init()
    5011 #        rms = Min(xstart)
    5012 #        print('Optimizing corrections to improve G(r) at low r')
    5013 #        print('start: Flat Bkg={:.1f}, BackRatio={:.3f}, Ruland={:.3f} (RMS:{:.2f})'.format(
    5014 #                data['Flat Bkg'],data['BackRatio'],data['Ruland'],rms))
    5015 #       
    5016 #        res = opt.minimize(Min,xstart,bounds=([0,None],[0,1],[0.01,1]),
    5017 #                           method='L-BFGS-B',options={'maxiter':5})
    5018 #        Done(res['x'])     
    5019 #        print('end:   Flat Bkg={:.1f}, BackRatio={:.3f}, Ruland={:.3f} (RMS:{:.2f})\n'.format(
    5020 #                data['Flat Bkg'],data['BackRatio'],data['Ruland'],res['fun']))
     5009        # see pwd.SetupPDFEval() and pwd.OptimizePDF() for an example minimization
    50215010        wx.EndBusyCursor()
    50225011        wx.CallAfter(UpdateLayerData)
Note: See TracChangeset for help on using the changeset viewer.