Changeset 3999 for trunk/GSASIIphsGUI.py
- Timestamp:
- May 27, 2019 4:07:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3998 r3999 5007 5007 # import scipy.optimize as opt 5008 5008 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 5021 5010 wx.EndBusyCursor() 5022 5011 wx.CallAfter(UpdateLayerData)
Note: See TracChangeset
for help on using the changeset viewer.