Changeset 2762
- Timestamp:
- Mar 27, 2017 2:00:48 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r2759 r2762 3847 3847 newCellDict = {} 3848 3848 for name in histNames: 3849 newCellDict.update(data[name].get('newCellDict',{})) 3849 if name in data and 'newCellDict' in data[name]: 3850 newCellDict.update(data[name]['newCellDict']) 3850 3851 # newCellDict = data[histNames[0]].get('newCellDict',{}) 3851 3852 cellAlist = [] … … 3992 3993 sampleDict[name] = dict(zip(sampleParms.keys(),[sampleParms[key][i] for key in sampleParms.keys()])) 3993 3994 # add unique cell parameters TODO: review this where the cell symmetry changes (when possible) 3994 if Controls.get('ShowCell',False) :3995 if Controls.get('ShowCell',False) and len(newCellDict): 3995 3996 for pId in sorted(RecpCellTerms): 3996 3997 pfx = str(pId)+'::' # prefix for A values from phase -
trunk/GSASIIpwdGUI.py
r2758 r2762 4708 4708 SaveState() 4709 4709 G2pwd.REFDRefine(Profile,ProfDict,Inst,Limits,Substances,data) 4710 wx.CallAfter(G2plt.PlotPatterns,G2frame,plotType='REFD')4711 wx.Call After(UpdateREFDModelsGrid,G2frame,data)4710 G2plt.PlotPatterns(G2frame,plotType='REFD') 4711 wx.CallLater(100,UpdateREFDModelsGrid,G2frame,data) 4712 4712 4713 4713 def OnFitModelAll(event): … … 4720 4720 G2frame.PatternId,'Models')) 4721 4721 G2frame.dataFrame.REFDUndo.Enable(False) 4722 UpdateREFDModelsGrid(G2frame,data)4723 4722 G2pwd.REFDModelFxn(Profile,Inst,Limits,Substances,data) 4723 G2plt.PlotPatterns(G2frame,plotType='REFD') 4724 wx.CallLater(100,UpdateREFDModelsGrid,G2frame,data) 4724 4725 4725 4726 def DoUnDo(): … … 4783 4784 if invalid: 4784 4785 return 4786 4785 4787 G2pwd.REFDModelFxn(Profile,Inst,Limits,Substances,data) 4786 4788 G2plt.PlotPatterns(G2frame,plotType='REFD') … … 4841 4843 if invalid: 4842 4844 return 4843 wx.CallAfter(G2pwd.REFDModelFxn,Profile,Inst,Limits,Substances,data)4844 wx.CallAfter(G2plt.PlotPatterns,G2frame,plotType='REFD')4845 wx.Call After(UpdateREFDModelsGrid,G2frame,data)4845 G2pwd.REFDModelFxn(Profile,Inst,Limits,Substances,data) 4846 G2plt.PlotPatterns(G2frame,plotType='REFD') 4847 wx.CallLater(100,UpdateREFDModelsGrid,G2frame,data) 4846 4848 4847 4849 layerSizer = wx.BoxSizer(wx.VERTICAL)
Note: See TracChangeset
for help on using the changeset viewer.