Changeset 2505


Ignore:
Timestamp:
Oct 25, 2016 2:32:22 PM (5 years ago)
Author:
vondreele
Message:

fix busy cursor problem for seq peak fit. Too far inside loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2499 r2505  
    563563            names.reverse()
    564564        try:
     565            wx.BeginBusyCursor()
    565566            for i,name in enumerate(names):
    566567                print ' Sequential fit for ',name
     
    577578                inst,inst2 = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,PatternId, 'Instrument Parameters'))
    578579                data = G2frame.PatternTree.GetItemPyData(PatternId)[1]
    579                 wx.BeginBusyCursor()
    580580                dlg2 = wx.ProgressDialog('Residual','Peak fit Rwp = ',101.0,
    581581                    style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_REMAINING_TIME|wx.PD_CAN_ABORT)
     
    651651            peaks['sigDict'] = G2pwd.DoPeakFit(FitPgm,peaks['peaks'],background,limits,inst,inst2,data,[],oneCycle,controls,dlg)[0]
    652652        finally:
    653             wx.EndBusyCursor()   
     653            print 'finished'
     654            wx.EndBusyCursor()
     655            dlg.Destroy()   
    654656        G2frame.PatternTree.SetItemPyData(G2gd.GetPatternTreeItemId(G2frame,PatternId, 'Peak List'),copy.copy(peaks))
    655657        UpdatePeakGrid(G2frame,copy.copy(peaks))
    656658        G2plt.PlotPatterns(G2frame,plotType='PWDR')
    657         print 'finished'
    658659        return
    659660       
Note: See TracChangeset for help on using the changeset viewer.