Changeset 2715
- Timestamp:
- Feb 18, 2017 4:22:21 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2712 r2715 18 18 import os 19 19 import sys 20 import time21 20 import math 22 21 import copy -
trunk/GSASIIgrid.py
r2711 r2715 1498 1498 self.globVars.sort() 1499 1499 self.hisNames = [':'.join(item) for item in splitNames if not item[0]] 1500 self.hisNums = [' ',]+list(set([item.split(':')[1] for item in self.hisNames])) 1501 if '' in self.hisNums: self.hisNums.remove('') 1500 self.hisNums = list(set([int(item.split(':')[1]) for item in self.hisNames])) 1501 self.hisNums.sort() 1502 self.hisNums = [' ',]+[str(item) for item in self.hisNums] 1502 1503 self.hisVars = list(set([' ',]+[item[2] for item in splitNames if not item[0]])) 1503 1504 self.hisVars.sort() 1504 self.hisNums.sort()1505 1505 self.phasNames = [':'.join(item) for item in splitNames if not item[1] and 'is' not in item[2]] 1506 1506 self.phasNums = [' ',]+list(set([item.split(':')[0] for item in self.phasNames])) … … 1614 1614 subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'value'),0,wx.ALIGN_RIGHT) 1615 1615 explainRefine = False 1616 time0 = time.time()1617 1616 for name in choiceDict[self.parmChoice]: 1618 1617 # skip entries without numerical values … … 1645 1644 subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,value),0,wx.ALIGN_RIGHT) 1646 1645 1647 print time.time()-time01648 1646 mainSizer.Add(subSizer,0) 1649 1647 if explainRefine: -
trunk/GSASIIplot.py
r2701 r2715 4187 4187 'press L to toggle lines, S to select X axis, T to change titles (reselect column to show?)',1) 4188 4188 Plot.clear() 4189 colors=['b','g','r','c','m','k'] 4189 4190 if G2frame.seqXaxis is not None: 4190 4191 xName,X,Xsig = Page.seqTableGet(G2frame.seqXaxis) … … 4192 4193 X = np.arange(0,G2frame.SeqTable.GetNumberRows(),1) 4193 4194 xName = 'Data sequence number' 4194 for col in Page.seqYaxisList: 4195 for ic,col in enumerate(Page.seqYaxisList): 4196 Ncol = colors[ic%6] 4195 4197 name,Y,sig = Page.seqTableGet(col) 4196 4198 # deal with missing (None) values … … 4199 4201 Ysnew = [] 4200 4202 for i in range(len(X)): 4201 if X[i] is None or Y[i] is None: continue 4203 if X[i] is None or Y[i] is None: 4204 if Ysnew: 4205 if G2frame.seqReverse and not G2frame.seqXaxis: 4206 Ynew = Ynew[::-1] 4207 Ysnew = Ysnew[::-1] 4208 if G2frame.seqLines: 4209 Plot.errorbar(Xnew,Ynew,yerr=Ysnew,color=Ncol) 4210 else: 4211 Plot.errorbar(Xnew,Ynew,yerr=Ysnew,linestyle='None',color=Ncol,marker='x') 4212 else: 4213 if G2frame.seqReverse and not G2frame.seqXaxis: 4214 Ynew = Ynew[::-1] 4215 Plot.plot(Xnew,Ynew,color=Ncol) 4216 Plot.plot(Xnew,Ynew,'o',color=Ncol) 4217 Xnew = [] 4218 Ynew = [] 4219 Ysnew = [] 4220 continue 4202 4221 Xnew.append(X[i]) 4203 4222 Ynew.append(Y[i]) … … 4208 4227 Ysnew = Ysnew[::-1] 4209 4228 if G2frame.seqLines: 4210 Plot.errorbar(Xnew,Ynew,yerr=Ysnew, label=name)4229 Plot.errorbar(Xnew,Ynew,yerr=Ysnew,color=Ncol,label=name) 4211 4230 else: 4212 Plot.errorbar(Xnew,Ynew,yerr=Ysnew,label=name,linestyle='None', marker='x')4231 Plot.errorbar(Xnew,Ynew,yerr=Ysnew,label=name,linestyle='None',color=Ncol,marker='x') 4213 4232 else: 4214 4233 if G2frame.seqReverse and not G2frame.seqXaxis: 4215 4234 Ynew = Ynew[::-1] 4216 Plot.plot(Xnew,Ynew )4217 Plot.plot(Xnew,Ynew,'o', label=name)4235 Plot.plot(Xnew,Ynew,color=Ncol) 4236 Plot.plot(Xnew,Ynew,'o',color=Ncol,label=name) 4218 4237 if Page.fitvals: # TODO: deal with fitting of None values 4219 4238 if G2frame.seqReverse and not G2frame.seqXaxis: -
trunk/GSASIIpwdGUI.py
r2714 r2715 3591 3591 G2frame.RefList = '' 3592 3592 phaseName = '' 3593 # if phaseName not in G2frame.refTable:3594 # print phaseName3595 # print phases3596 # raise Exception("how did we get a invalid phase name?")3597 3593 if phaseName: 3598 3594 ShowReflTable(phaseName) 3599 # G2frame.refTable[phaseName].Fit() #slow!!3600 # size = G2frame.refTable[phaseName].GetSize()3601 # G2frame.dataFrame.setSizePosLeft([size[0]+32,350])3602 3595 G2frame.dataFrame.setSizePosLeft([550,350]) 3603 3596 G2frame.dataDisplay.Bind(wx.aui.EVT_AUINOTEBOOK_PAGE_CHANGED, OnPageChanged) -
trunk/GSASIIstrIO.py
r2698 r2715 2215 2215 except KeyError: 2216 2216 #skip if histogram not included e.g. in a sequential refinement 2217 continue 2218 if not HistoPhase[histogram]['Use']: #remove previously created & now unused phase reflection list 2219 if phase in Histograms[histogram]['Reflection Lists']: 2220 del Histograms[histogram]['Reflection Lists'][phase] 2217 2221 continue 2218 2222 hapData = HistoPhase[histogram] … … 2655 2659 #skip if histogram not included e.g. in a sequential refinement 2656 2660 continue 2661 if not Phases[phase]['Histograms'][histogram]['Use']: 2662 #skip if phase absent from this histogram 2663 continue 2657 2664 hapData = HistoPhase[histogram] 2658 2665 hId = Histogram['hId'] -
trunk/GSASIIstrMath.py
r2695 r2715 401 401 pWsum[name] = 0.0 402 402 for hist in Phases[phase]['Histograms']: 403 if not Phases[phase]['Histograms'][hist]['Use']: 404 continue 403 405 if hist in Histograms and 'PWDR' in hist: 404 406 hId = Histograms[hist]['hId']
Note: See TracChangeset
for help on using the changeset viewer.