Changeset 2233
- Timestamp:
- Apr 30, 2016 8:37:25 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r2232 r2233 252 252 newAtoms += moreAtoms 253 253 for atom in newAtoms: 254 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3],invTrans.T,Vec) 254 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3],invTrans.T,Vec)%1. 255 255 if atom[cia] == 'A': 256 256 atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],invTrans) -
trunk/GSASIIphsGUI.py
r2230 r2233 1655 1655 FillAtomsGrid(Atoms) 1656 1656 event.StopPropagation() 1657 data['Drawing']['Atoms'] = [] 1658 UpdateDrawAtoms() 1657 1659 G2plt.PlotStructure(G2frame,data) 1658 1660 … … 1672 1674 {'SS1':{'waveType':'Fourier','Sfrac':[],'Spos':[],'Sadp':[],'Smag':[]}}]) 1673 1675 SetupGeneral() 1674 if 'Atoms' in data['Drawing']: 1675 DrawAtomAdd(data['Drawing'],atomData[-1]) 1676 data['Drawing']['Atoms'] = [] 1677 UpdateDrawAtoms() 1678 G2plt.PlotStructure(G2frame,data) 1679 # if 'Atoms' in data['Drawing']: 1680 # DrawAtomAdd(data['Drawing'],atomData[-1]) 1676 1681 1677 1682 def OnAtomInsert(event): … … 1681 1686 FillAtomsGrid(Atoms) 1682 1687 event.StopPropagation() 1688 data['Drawing']['Atoms'] = [] 1689 UpdateDrawAtoms() 1683 1690 G2plt.PlotStructure(G2frame,data) 1684 1691 … … 1891 1898 {'SS1':{'waveType':'Fourier','Sfrac':[],'Spos':[],'Sadp':[],'Smag':[]}}]) 1892 1899 SetupGeneral() 1900 data['Drawing']['Atoms'] = [] 1901 UpdateDrawAtoms() 1902 G2plt.PlotStructure(G2frame,data) 1893 1903 1894 1904 def AtomDelete(event): … … 2032 2042 FillAtomsGrid(Atoms) 2033 2043 dlg.Destroy() 2044 data['Drawing']['Atoms'] = [] 2045 UpdateDrawAtoms() 2046 G2plt.PlotStructure(G2frame,data) 2047 else: 2048 print "select one or more rows of atoms" 2049 G2frame.ErrorDialog('Select atom',"select one or more atoms then redo") 2034 2050 2035 2051 def AtomTransform(event): … … 2082 2098 else: 2083 2099 Atoms.ForceRefresh() 2100 data['Drawing']['Atoms'] = [] 2101 UpdateDrawAtoms() 2102 G2plt.PlotStructure(G2frame,data) 2084 2103 else: 2085 2104 print "select one or more rows of atoms" … … 7341 7360 G2frame.dataFrame.Bind(wx.EVT_MENU, AtomModify, id=G2gd.wxID_ATOMSMODIFY) 7342 7361 G2frame.dataFrame.Bind(wx.EVT_MENU, AtomTransform, id=G2gd.wxID_ATOMSTRANSFORM) 7343 G2frame.dataFrame.Bind(wx.EVT_MENU, AtomRotate, id=G2gd.wxID_ATOMSROTATE)7362 # G2frame.dataFrame.Bind(wx.EVT_MENU, AtomRotate, id=G2gd.wxID_ATOMSROTATE) 7344 7363 G2frame.dataFrame.Bind(wx.EVT_MENU, MakeMolecule, id=G2gd.wxID_MAKEMOLECULE) 7345 7364 G2frame.dataFrame.Bind(wx.EVT_MENU, OnReloadDrawAtoms, id=G2gd.wxID_RELOADDRAWATOMS)
Note: See TracChangeset
for help on using the changeset viewer.