Changeset 4317 for trunk/GSASIIimgGUI.py
- Timestamp:
- Feb 17, 2020 10:05:27 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimgGUI.py
r4303 r4317 1639 1639 if dlg.ShowModal() == wx.ID_OK: 1640 1640 filename = dlg.GetPath() 1641 1641 1642 G2fil.readMasks(filename,data,ignoreThreshold) 1642 1643 wx.CallAfter(UpdateMasks,G2frame,data) … … 1660 1661 dlg = wx.ProgressDialog("Auto spot masking for %d bins"%nChans,"Processed 2-theta rings = ",nChans+1, 1661 1662 style = wx.PD_ELAPSED_TIME|wx.PD_CAN_ABORT) 1663 time0 = time.time() 1662 1664 Error = G2img.AutoSpotMasks2(G2frame.ImageZ,data,Controls,nChans,dlg) 1665 print(' Autospot processing time: %.2f'%(time.time()-time0)) 1663 1666 if not Error is None: 1664 1667 G2frame.ErrorDialog('Auto spot search error',Error) … … 1860 1863 1861 1864 def OnDelBtn(event): 1862 data['SpotMask'] = {'esdMul':2 ,'spotMask':None}1865 data['SpotMask'] = {'esdMul':2.,'spotMask':None} 1863 1866 wx.CallAfter(UpdateMasks,G2frame,data) 1864 1867 … … 1914 1917 data['Frames'] = [] 1915 1918 if 'SpotMask' not in data: 1916 data['SpotMask'] = {'esdMul':2 ,'spotMask':None}1919 data['SpotMask'] = {'esdMul':2.,'spotMask':None} 1917 1920 frame = data['Frames'] #3+ x,y pairs 1918 1921 Arcs = data['Arcs'] #radius, start/end azimuth, thickness … … 1942 1945 mainSizer.Add(littleSizer,0,) 1943 1946 spotSizer = wx.BoxSizer(wx.HORIZONTAL) 1947 data['SpotMask']['esdMul'] = float(data['SpotMask']['esdMul']) 1944 1948 spotSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Select spot range factor (1-10): '),0,WACV) 1945 1949 spotSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,loc=data['SpotMask'], … … 3200 3204 else: 3201 3205 self.ImageMasks = {'Points':[],'Rings':[],'Arcs':[],'Polygons':[],'Frames':[], 3202 'SpotMask':{'esdMul':2,'spotMask':None}, 3203 } 3206 'SpotMask':{'esdMul':2.,'spotMask':None},} 3204 3207 3205 3208 def StartLoop(self):
Note: See TracChangeset
for help on using the changeset viewer.