Changeset 2322 for trunk/GSASIIimgGUI.py
- Timestamp:
- Jun 15, 2016 7:40:20 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimgGUI.py
r2312 r2322 1995 1995 cntlList = ['wavelength','distance','tilt','invert_x','invert_y','type', 1996 1996 'fullIntegrate','outChannels','outAzimuths','LRazimuth','IOtth','azmthOff','DetDepth', 1997 'calibskip','pixLimit','cutoff','calibdmin',' chisq','Flat Bkg',1997 'calibskip','pixLimit','cutoff','calibdmin','Flat Bkg', 1998 1998 'PolaVal','SampleAbs','dark image','background image'] 1999 1999 File = open(filename,'r') … … 2034 2034 cntlList = ['wavelength','distance','tilt','invert_x','invert_y','type', 2035 2035 'fullIntegrate','outChannels','outAzimuths','LRazimuth','IOtth','azmthOff','DetDepth', 2036 'calibskip','pixLimit','cutoff','calibdmin',' chisq','Flat Bkg',2036 'calibskip','pixLimit','cutoff','calibdmin','Flat Bkg', 2037 2037 'PolaVal','SampleAbs','dark image','background image'] 2038 2038 File = open(imctrl_file,'r') … … 2494 2494 '''A method that is called every :meth:`PollTime` seconds that is 2495 2495 used to check for new files and process them. This is called only 2496 after the "Start" button is pressed ( when its label reads "Pause").2496 after the "Start" button is pressed (then its label reads "Pause"). 2497 2497 ''' 2498 2498 G2frame = self.G2frame … … 2528 2528 ImageMasks.update(self.ImageMasks) 2529 2529 self.IntegrateImage(img) 2530 self.Pause = G2frame.PauseIntegration 2530 2531 self.G2frame.oldImagefile = '' # mark image as changed; reread as needed 2531 2532 wx.Yield() 2532 2533 self.ShowMatchingFiles(self.params['filter']) 2533 2534 wx.Yield() 2534 if self.Pause: return 2535 if self.Pause: 2536 self.btnstart.SetLabel('Resume') 2537 if self.timer.IsRunning(): self.timer.Stop() 2538 print('\nPausing autointegration\n') 2539 self.Status.SetStatusText('Press Resume to continue integration or Reset to prepare to reintegrate all images') 2540 return 2535 2541 2536 2542 # loop over image files matching glob, reading in any new ones 2537 2543 for newImage in self.currImageList: 2538 2544 2539 if newImage in imageFileList : continue # already read?2545 if newImage in imageFileList or self.Pause: continue # already read? 2540 2546 for imgId in G2IO.ReadImages(G2frame,newImage): 2541 2547 controlsDict = G2frame.PatternTree.GetItemPyData( … … 2557 2563 wx.Yield() 2558 2564 self.Pause = G2frame.PauseIntegration 2565 print 'pause',self.Pause 2559 2566 if self.Pause: 2560 2567 self.btnstart.SetLabel('Resume') … … 2562 2569 print('\nPausing autointegration\n') 2563 2570 self.Status.SetStatusText('Press Resume to continue integration or Reset to prepare to reintegrate all images') 2564 return2571 break 2565 2572 2566 2573 if GSASIIpath.GetConfigValue('debug'):
Note: See TracChangeset
for help on using the changeset viewer.