Changeset 657 for trunk/GSASIIphsGUI.py
- Timestamp:
- Jun 26, 2012 3:44:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r652 r657 3825 3825 print ' Begin fourier map search - can take some time' 3826 3826 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) 3828 3835 try: 3829 peaks,mags = G2mth.SearchMap(data,keepDup=True )3836 peaks,mags = G2mth.SearchMap(data,keepDup=True,Pgbar=pgbar) 3830 3837 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() 3832 3846 sortIdx = np.argsort(mags.flatten()) 3833 3847 if len(peaks):
Note: See TracChangeset
for help on using the changeset viewer.