Changeset 2302
- Timestamp:
- Jun 1, 2016 10:00:21 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r2284 r2302 900 900 jFin = min(jBeg+blkSize,Nx) 901 901 # next is most expensive step! 902 # print 'before Make' 902 903 TA,tam = Make2ThetaAzimuthMap(data,masks,(iBeg,iFin),(jBeg,jFin),times) #2-theta & azimuth arrays & create position mask 904 # print '\tafter Make' 903 905 Nup += 1 904 906 if dlg: … … 906 908 Block = image[iBeg:iFin,jBeg:jFin] 907 909 t0 = time.time() 910 # print 'before Fill' 908 911 tax,tay,taz,tad,tabs = Fill2ThetaAzimuthMap(masks,TA,tam,Block) #and apply masks 912 # print '\tafter Fill' 913 del TA; del tam 909 914 times[2] += time.time()-t0 910 915 Nup += 1 … … 925 930 t0 = time.time() 926 931 if any([tax.shape[0],tay.shape[0],taz.shape[0]]): 932 # print 'before histo' 927 933 NST,H0 = h2d.histogram2d(len(tax),tax,tay,taz*tad/tabs, 928 934 numAzms,numChans,LRazm,lutth,Dazm,dtth,NST,H0) 935 # print '\tafter histo' 929 936 times[3] += time.time()-t0 930 937 Nup += 1 938 del tax; del tay; del taz; del tad; del tabs 931 939 if dlg: 932 940 dlg.Update(Nup) -
trunk/GSASIIimgGUI.py
r2301 r2302 2436 2436 # skip if already integrated 2437 2437 if img in G2frame.IntegratedList: continue 2438 controlsDict = G2frame.PatternTree.GetItemPyData( 2439 G2gd.GetPatternTreeItemId(G2frame,imgId, 'Image Controls')) 2440 ImageMasks = G2frame.PatternTree.GetItemPyData( 2441 G2gd.GetPatternTreeItemId(G2frame,imgId, 'Masks')) 2438 2442 if self.params['Mode'] == 'table': # look up parameter values from table 2439 controlsDict = G2frame.PatternTree.GetItemPyData(2440 G2gd.GetPatternTreeItemId(G2frame,imgId, 'Image Controls'))2441 ImageMasks = G2frame.PatternTree.GetItemPyData(2442 G2gd.GetPatternTreeItemId(G2frame,imgId, 'Masks'))2443 2443 self.ResetFromTable(controlsDict['distance']) 2444 2445 2446 2447 2444 # update controls from master 2445 controlsDict.update(self.ImageControls) 2446 # update masks from master w/o Thresholds 2447 ImageMasks.update(self.ImageMasks) 2448 2448 self.IntegrateImage(img) 2449 2449 self.G2frame.oldImagefile = '' # mark image as changed; reread as needed … … 2455 2455 # loop over image files matching glob, reading in any new ones 2456 2456 for newImage in self.currImageList: 2457 2457 2458 if newImage in imageFileList: continue # already read? 2458 2459 for imgId in G2IO.ReadImages(G2frame,newImage): … … 2562 2563 if not pth: pth = '.' 2563 2564 dlg = wx.FileDialog(self, 'Read previous table or build new table by selecting image control files', pth, 2564 2565 wildcard='image control files (.imctrl)|*.imctrl|Integration table (*.imtbl)|*.imtbl')2565 style=wx.OPEN| wx.MULTIPLE, 2566 wildcard='Integration table (*.imtbl)|*.imtbl|image control files (.imctrl)|*.imctrl') 2566 2567 dlg.CenterOnParent() 2567 2568 if dlg.ShowModal() == wx.ID_OK:
Note: See TracChangeset
for help on using the changeset viewer.