Changeset 2316 for trunk/GSASIIgrid.py
- Timestamp:
- Jun 12, 2016 8:22:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r2314 r2316 1465 1465 help='Add a new pseudo-variable') 1466 1466 self.SequentialPvars.Append( 1467 id=wxADDSEQDIST, kind=wx.ITEM_NORMAL,text=' Add dist',1467 id=wxADDSEQDIST, kind=wx.ITEM_NORMAL,text='Calc Distance', 1468 1468 help='Add a new bond distance pseudo-variable') 1469 1469 self.SequentialPvars.Append( 1470 id=wxADDSEQANGLE, kind=wx.ITEM_NORMAL,text=' Add angle',1470 id=wxADDSEQANGLE, kind=wx.ITEM_NORMAL,text='Calc Angle', 1471 1471 help='Add a new bond angle pseudo-variable') 1472 1472 self.SequentialPvars.Append( … … 2772 2772 VarLabel = "New Bond") 2773 2773 if dlg.ShowModal() == wx.ID_OK: 2774 obj = dlg.GetSelection() 2774 #obj = dlg.GetSelection() 2775 # create an expression object 2776 obj = G2obj.ExpressionObj() 2777 obj.expression = 'Dist(1,2)' 2778 obj.distance_stuff = np.array([[0,1,1,-1]]) 2779 obj.distance_atoms = [1,2] 2775 2780 else: 2776 2781 dlg.Destroy() … … 2778 2783 dlg.Destroy() 2779 2784 if obj: 2780 calcobj = G2obj.ExpressionCalcObj(obj) 2781 Controls['SeqPseudoVars'][calcobj.eObj.expression] = obj 2785 Controls['SeqPseudoVars'][obj.expression] = obj 2782 2786 UpdateSeqResults(G2frame,data,G2frame.dataDisplay.GetSize()) # redisplay variables 2783 2787
Note: See TracChangeset
for help on using the changeset viewer.