Changeset 2739
- Timestamp:
- Mar 4, 2017 9:56:49 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2736 r2739 3983 3983 self.PatternTree.SelectItem(Id) 3984 3984 # update other self-updating plots 3985 for lbl,frame in zip(self.G2plotNB.plotList,self.G2plotNB.panelList):3986 if frame.plotInvalid and frame.replotFunction:3987 frame.replotFunction(*frame.replotArgs,**frame.replotKWargs)3985 # for lbl,frame in zip(self.G2plotNB.plotList,self.G2plotNB.panelList): 3986 # if frame.plotInvalid and frame.replotFunction: 3987 # frame.replotFunction(*frame.replotArgs,**frame.replotKWargs) 3988 3988 # delete any remaining plots that are still invalid and need a refresh 3989 3989 for lbl,frame in zip(self.G2plotNB.plotList,self.G2plotNB.panelList): -
trunk/GSASIIddataGUI.py
r2732 r2739 864 864 UseList[G2frame.hist]['LeBail'] = False 865 865 if 'newLeBail' not in UseList[G2frame.hist]: 866 UseList[G2frame.hist]['newLeBail'] = True866 UseList[G2frame.hist]['newLeBail'] = False 867 867 if 'Babinet' not in UseList[G2frame.hist]: 868 868 UseList[G2frame.hist]['Babinet'] = {'BabA':[0.0,False],'BabU':[0.0,False]} -
trunk/GSASIIplot.py
r2723 r2739 2359 2359 if not plotType: 2360 2360 plotType = G2frame.G2plotNB.plotList[G2frame.G2plotNB.nb.GetSelection()] 2361 if plotType not in ['I(Q)','S(Q)','F(Q)','G(R)' ]:2361 if plotType not in ['I(Q)','S(Q)','F(Q)','G(R)','delt-G(R)']: 2362 2362 return 2363 2363 -
trunk/GSASIIpwdGUI.py
r2735 r2739 5077 5077 sfgSizer.Add(sqBox,0) 5078 5078 return sfgSizer 5079 5080 def DiffSizer(): 5081 5082 def OnSelectGR(event): 5083 data['diffGRname'] = grName.GetValue() 5084 if data['diffGRname']: 5085 id = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,data['diffGRname']) 5086 pId = G2gd.GetPatternTreeItemId(G2frame,id,'PDF Controls') 5087 subData = G2frame.PatternTree.GetItemPyData(pId)['G(R)'][1] 5088 if subData[0].shape != data['G(R)'][1][0].shape: 5089 print 'Error - G(R) not same length' 5090 data['delt-G(R)'] = [subData[0],data['G(R)'][1][0]-subData[1]] 5091 G2plt.PlotISFG(G2frame,data,newPlot=True,plotType='delt-G(R)') 5092 5093 diffSizer = wx.BoxSizer(wx.HORIZONTAL) 5094 fileList = [''] + GetFileList(G2frame,'PDF') 5095 diffSizer.Add(wx.StaticText(G2frame.dataDisplay,label=' Subtract G(R) for: '),0,WACV) 5096 grName = wx.ComboBox(G2frame.dataDisplay,value=data['diffGRname'],choices=fileList, 5097 style=wx.CB_READONLY|wx.CB_DROPDOWN) 5098 grName.Bind(wx.EVT_COMBOBOX,OnSelectGR) 5099 diffSizer.Add(grName,0,) 5100 return diffSizer 5079 5101 5080 5102 def SumElementVolumes(): … … 5318 5340 if 'Refine' not in data['Sample Bkg.']: 5319 5341 data['Sample Bkg.']['Refine'] = False 5342 if 'diffGRname' not in data: 5343 data['diffGRname'] = '' 5320 5344 if G2frame.dataDisplay: 5321 5345 G2frame.dataFrame.Clear() … … 5339 5363 G2G.HorizontalLine(mainSizer,G2frame.dataDisplay) 5340 5364 mainSizer.Add(SFGctrlSizer(),0,WACV) 5365 G2G.HorizontalLine(mainSizer,G2frame.dataDisplay) 5366 mainSizer.Add(DiffSizer(),0,WACV) 5341 5367 mainSizer.Layout() 5342 5368 G2frame.dataDisplay.SetSizer(mainSizer) -
trunk/GSASIIstrIO.py
r2735 r2739 2236 2236 if Phases[phase]['General']['doPawley']: 2237 2237 hapDict[pfx+'LeBail'] = False #Pawley supercedes LeBail 2238 hapDict[pfx+'newLeBail'] = True2238 hapDict[pfx+'newLeBail'] = False 2239 2239 Tmin = G2lat.Dsp2pos(inst,dmin) 2240 2240 if 'C' in inst['Type'][1]: … … 2244 2244 else: 2245 2245 hapDict[pfx+'LeBail'] = hapData.get('LeBail',False) 2246 hapDict[pfx+'newLeBail'] = hapData.get('newLeBail', True)2246 hapDict[pfx+'newLeBail'] = hapData.get('newLeBail',False) 2247 2247 if Phases[phase]['General']['Type'] == 'magnetic': 2248 2248 dmin = max(dmin,Phases[phase]['General']['MagDmin']) 2249 2249 for item in ['Scale','Extinction']: 2250 2250 hapDict[pfx+item] = hapData[item][0] 2251 if hapData[item][1] and not hapDict[pfx+'LeBail']:2251 if hapData[item][1]: 2252 2252 hapVary.append(pfx+item) 2253 2253 names = G2spc.HStrainNames(SGData) … … 2262 2262 hapDict[pfx+'MD'] = hapData['Pref.Ori.'][1] 2263 2263 controlDict[pfx+'MDAxis'] = hapData['Pref.Ori.'][3] 2264 if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']:2264 if hapData['Pref.Ori.'][2]: 2265 2265 hapVary.append(pfx+'MD') 2266 2266 else: #'SH' spherical harmonics … … 2278 2278 for item in hapData['Pref.Ori.'][5]: 2279 2279 hapDict[pfx+item] = hapData['Pref.Ori.'][5][item] 2280 if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']:2280 if hapData['Pref.Ori.'][2]: 2281 2281 hapVary.append(pfx+item) 2282 2282 for item in ['Mustrain','Size']: 2283 2283 controlDict[pfx+item+'Type'] = hapData[item][0] 2284 2284 hapDict[pfx+item+';mx'] = hapData[item][1][2] 2285 if hapData[item][2][2] and not hapDict[pfx+'newLeBail']:2285 if hapData[item][2][2]: 2286 2286 hapVary.append(pfx+item+';mx') 2287 2287 if hapData[item][0] in ['isotropic','uniaxial']: 2288 2288 hapDict[pfx+item+';i'] = hapData[item][1][0] 2289 if hapData[item][2][0] and not hapDict[pfx+'newLeBail']:2289 if hapData[item][2][0]: 2290 2290 hapVary.append(pfx+item+';i') 2291 2291 if hapData[item][0] == 'uniaxial': 2292 2292 controlDict[pfx+item+'Axis'] = hapData[item][3] 2293 2293 hapDict[pfx+item+';a'] = hapData[item][1][1] 2294 if hapData[item][2][1] and not hapDict[pfx+'newLeBail']:2294 if hapData[item][2][1]: 2295 2295 hapVary.append(pfx+item+';a') 2296 2296 else: #generalized for mustrain or ellipsoidal for size … … 2306 2306 sfx = ';'+str(i) 2307 2307 hapDict[pfx+item+sfx] = hapData[item][4][i] 2308 if hapData[item][5][i] and not hapDict[pfx+'newLeBail']:2308 if hapData[item][5][i]: 2309 2309 hapVary.append(pfx+item+sfx) 2310 2310 if Phases[phase]['General']['Type'] != 'magnetic': 2311 2311 for bab in ['BabA','BabU']: 2312 2312 hapDict[pfx+bab] = hapData['Babinet'][bab][0] 2313 if hapData['Babinet'][bab][1] and not hapDict[pfx+'LeBail']:2313 if hapData['Babinet'][bab][1]: 2314 2314 hapVary.append(pfx+bab) 2315 2315 … … 2332 2332 PrintMuStrain(hapData['Mustrain'],SGData) 2333 2333 PrintHStrain(hapData['HStrain'],SGData) 2334 if Phases[phase]['General']['Type'] != 'magnetic' and not hapDict[pfx+'LeBail']:2334 if Phases[phase]['General']['Type'] != 'magnetic': 2335 2335 if hapData['Babinet']['BabA'][0]: 2336 2336 PrintBabinet(hapData['Babinet'])
Note: See TracChangeset
for help on using the changeset viewer.