Changeset 2183 for trunk/GSASIIphsGUI.py
- Timestamp:
- Mar 24, 2016 9:58:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r2182 r2183 418 418 G2frame.dataFrame.Bind(wx.EVT_MENU, OnLoadDIFFaX, id=G2gd.wxID_LOADDIFFAX) 419 419 G2frame.dataFrame.Bind(wx.EVT_MENU, OnSimulate, id=G2gd.wxID_LAYERSIMULATE) 420 G2frame.dataFrame.Bind(wx.EVT_MENU, OnSeqSimulate, id=G2gd.wxID_SEQUENCESIMULATE) 420 421 if 'Wave Data' in pages: 421 422 pass … … 626 627 def ElemSizer(): 627 628 628 def OnIsotope(event): #how can I update Atom weight on isotope change?629 def OnIsotope(event): 629 630 Obj = event.GetEventObject() 630 631 item = Indx[Obj.GetId()] 631 632 isotope = Obj.GetValue() 633 nCols = len(generalData['AtomTypes'])+1 632 634 data['General']['Isotope'][item] = isotope 633 635 indx = generalData['AtomTypes'].index(item) 634 data['General']['AtomMass'][indx] = generalData['Isotopes'][item][isotope]['Mass'] 636 wt = generalData['Isotopes'][item][isotope]['Mass'] 637 elemSizer.GetChildren()[indx+3*nCols+1].Window.SetValue('%.3f'%(wt)) #tricky 638 data['General']['AtomMass'][indx] = wt 635 639 density,mattCoeff = G2mth.getDensity(generalData) 636 640 denSizer[1].SetValue('%.3f'%(density)) … … 2925 2929 dlg = G2gd.DIFFaXcontrols(G2frame,ctrls) 2926 2930 if dlg.ShowModal() == wx.ID_OK: 2927 ctrls,plane,lmax = dlg.GetSelection()2931 ctrls,plane,lmax,x,x,x = dlg.GetSelection() 2928 2932 data['Layers']['Sadp'] = {} 2929 2933 data['Layers']['Sadp']['Plane'] = plane … … 2966 2970 else: #selected area 2967 2971 G2pwd.StackSim(data['Layers'],ctrls) 2968 # G2pwd.CalcStackingSADP(data['Layers']) 2972 # if GSASIIpath.GetConfigValue('debug'): 2973 # G2pwd.CalcStackingSADP(data['Layers']) 2969 2974 wx.CallAfter(UpdateLayerData) 2975 2976 def OnSeqSimulate(event): 2977 2978 ctrls = '' 2979 Parms = G2pwd.GetStackParms(data['Layers']) 2980 dlg = G2gd.DIFFaXcontrols(G2frame,ctrls,Parms) 2981 if dlg.ShowModal() == wx.ID_OK: 2982 ctrls,plane,lmax,parm,parmRange,parmStep = dlg.GetSelection() 2983 data['Layers']['Sadp'] = {} 2984 data['Layers']['Sadp']['Plane'] = plane 2985 data['Layers']['Sadp']['Lmax'] = lmax 2986 data['Layers']['Multi'] = [parm,parmRange,parmStep] 2987 else: 2988 return 2989 print 'do sequence of simulations on...',parm,parmRange,parmStep 2970 2990 2971 2991 ################################################################################ … … 7088 7108 FillSelectPageMenu(TabSelectionIdDict, G2frame.dataFrame.WavesData) 7089 7109 G2frame.dataFrame.Bind(wx.EVT_MENU, OnWaveVary, id=G2gd.wxID_WAVEVARY) 7090 # Stacking faults wxID_LAYERSIMULATE7110 # Stacking faults 7091 7111 if data['General']['Type'] == 'faulted': 7092 7112 FillSelectPageMenu(TabSelectionIdDict, G2frame.dataFrame.LayerData) 7093 7113 G2frame.dataFrame.Bind(wx.EVT_MENU, OnLoadDIFFaX, id=G2gd.wxID_LOADDIFFAX) 7094 7114 G2frame.dataFrame.Bind(wx.EVT_MENU, OnSimulate, id=G2gd.wxID_LAYERSIMULATE) 7115 G2frame.dataFrame.Bind(wx.EVT_MENU, OnSeqSimulate, id=G2gd.wxID_SEQUENCESIMULATE) 7095 7116 # Draw Options 7096 7117 FillSelectPageMenu(TabSelectionIdDict, G2frame.dataFrame.DataDrawOptions)
Note: See TracChangeset
for help on using the changeset viewer.