Changeset 657 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jun 26, 2012 3:44:56 PM (11 years ago)
Author:
vondreele
Message:

fixups of findOffset & mapsearch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r652 r657  
    38253825        print ' Begin fourier map search - can take some time'
    38263826        time0 = time.time()
    3827         wx.BeginBusyCursor()
     3827
     3828        pgbar = wx.ProgressDialog('Map search','No. Peaks found =',301.0,
     3829            style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT)
     3830        screenSize = wx.ClientDisplayRect()
     3831        Size = pgbar.GetSize()
     3832        Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x
     3833        pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
     3834        pgbar.SetSize(Size)
    38283835        try:
    3829             peaks,mags = G2mth.SearchMap(data,keepDup=True)
     3836            peaks,mags = G2mth.SearchMap(data,keepDup=True,Pgbar=pgbar)
    38303837        finally:
    3831             wx.EndBusyCursor()
     3838            pgbar.Destroy()
     3839
     3840
     3841#        wx.BeginBusyCursor()
     3842#        try:
     3843#            peaks,mags = G2mth.SearchMap(data,keepDup=True)
     3844#        finally:
     3845#            wx.EndBusyCursor()
    38323846        sortIdx = np.argsort(mags.flatten())
    38333847        if len(peaks):
Note: See TracChangeset for help on using the changeset viewer.