Changeset 4453 for trunk/GSASIIphsGUI.py
- Timestamp:
- Jun 1, 2020 1:49:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r4451 r4453 1231 1231 atomTypes,radii = getAtomRadii(data) 1232 1232 atomData = data['Drawing']['Atoms'] 1233 numAtoms = len(atomData)1234 1233 cx,ct,cs,ci = data['Drawing']['atomPtrs'] 1235 cij = ci+21236 1234 SGData = generalData['SGData'] 1237 1235 cellArray = G2lat.CellBlock(1) … … 1259 1257 atom[cmx:cmx+3] = np.inner(mom,M)*nl.det(M) 1260 1258 else: 1261 atom[cmx:cmx+3] = np.inner(mom,M)*nl.det(M)*S pnFlp[opNum-1]1259 atom[cmx:cmx+3] = np.inner(mom,M)*nl.det(M)*SGData['SpnFlp'][opNum-1] 1262 1260 atom[cs-1] = str(item[2])+'+' 1263 1261 atom[cs+5:cs+5+6] = item[1] … … 3572 3570 '''Adds H atoms to fill out coordination sphere for selected atoms 3573 3571 ''' 3574 cx,ct,cs,ci = getAtomPtrs(data)3572 cx,ct,cs,cia = getAtomPtrs(data) 3575 3573 indx = getAtomSelections(Atoms,ct-1) 3576 3574 if not indx: return … … 3798 3796 3799 3797 def AtomDelete(event): 3800 cx,ct,cs,ci = getAtomPtrs(data ,ct-1)3798 cx,ct,cs,ci = getAtomPtrs(data) 3801 3799 indx = getAtomSelections(Atoms) 3802 3800 colLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())] … … 4795 4793 i,min=10.,max=50.,size=(50,25)),0,WACV) 4796 4794 return boxSizer 4797 4798 def OnByMolec(event): 4799 RMCPdict['byMolec'] = bymolec.GetValue() 4800 wx.CallAfter(UpdateRMC) 4801 4795 4802 4796 def OnReStart(event): 4803 4797 RMCPdict['ReStart'][0] = not RMCPdict['ReStart'][0] … … 4970 4964 lineSizer.Add(wx.StaticText(G2frame.FRMC,label=' Lattice multipliers:'),0,WACV) 4971 4965 lineSizer.Add(GetSuperSizer(),0,WACV) 4972 # bymolec = wx.CheckBox(G2frame.FRMC,label='Save in molecule order?')4973 # bymolec.SetValue(RMCPdict['byMolec'])4974 # bymolec.Bind(wx.EVT_CHECKBOX,OnByMolec)4975 # lineSizer.Add(bymolec,0,WACV)4976 4966 lineSizer.Add(wx.StaticText(G2frame.FRMC,label=' Num. atoms per group '),0,WACV) 4977 4967 lineSizer.Add(G2G.ValidatedTxtCtrl(G2frame.FRMC,RMCPdict,'Natoms',min=1,size=[40,25]),0,WACV) … … 7573 7563 def DrawAtomLabel(event): 7574 7564 cx,ct,cs,ci = getAtomPtrs(data,draw=True) 7575 indx = getAtomSelections(drawAtoms ct-1)7565 indx = getAtomSelections(drawAtoms,ct-1) 7576 7566 if not indx: return 7577 7567 generalData = data['General'] … … 7673 7663 indx.sort() 7674 7664 colLabels = [drawAtoms.GetColLabelValue(c) for c in range(drawAtoms.GetNumberCols())] 7675 cuij = c ui+27665 cuij = ci+2 7676 7666 cmx = 0 7677 7667 if 'Mx' in colLabels: … … 7711 7701 else: 7712 7702 atom[cmx:cmx+3] = np.inner(mom,M)*nl.det(M)*SpnFlp[opNum-1] 7713 if atom[cui ] == 'A':7703 if atom[cuij] == 'A': 7714 7704 Uij = atom[cuij:cuij+6] 7715 7705 Uij = G2spc.U2Uij(np.inner(np.inner(M,G2spc.Uij2U(Uij)),M)) … … 7903 7893 except: 7904 7894 pass 7905 atomData = data['Drawing']['Atoms']7906 numAtoms = len(atomData)7907 cx,ct,cs,ci = data['Drawing']['atomPtrs']7908 cij = ci+27909 7895 colLabels = [drawAtoms.GetColLabelValue(c) for c in range(drawAtoms.GetNumberCols())] 7910 7896 cmx = 0 7911 7897 if 'Mx' in colLabels: 7912 7898 cmx = colLabels.index('Mx') 7913 SGData = generalData['SGData']7914 cellArray = G2lat.CellBlock(1)7915 nind = len(indx)7916 7899 pgbar = wx.ProgressDialog('Fill molecular coordination', 7917 7900 'Passes done=0 %0',params['maxrep'], … … 7966 7949 indx.sort() 7967 7950 atomData = data['Drawing']['Atoms'] 7968 numAtoms = len(atomData)7969 7951 cx,ct,cs,ci = data['Drawing']['atomPtrs'] 7970 cij = ci+27971 7952 colLabels = [drawAtoms.GetColLabelValue(c) for c in range(drawAtoms.GetNumberCols())] 7972 7953 cmx = 0 7973 7954 if 'Mx' in colLabels: 7974 7955 cmx = colLabels.index('Mx') 7975 SGData = generalData['SGData']7976 cellArray = G2lat.CellBlock(1)7977 7956 nind = len(indx) 7978 7957 pgbar = wx.ProgressDialog('Fill CN sphere for %d atoms'%nind,'Atoms done=',nind+1, … … 10142 10121 atomData = data['Atoms'] 10143 10122 Indx = {} 10144 atInd = [-1,-1,-1]10145 10123 data['testRBObj'] = {} 10146 10124 if len(rbNames) == 1:
Note: See TracChangeset
for help on using the changeset viewer.