Changeset 1599 for trunk/imports
- Timestamp:
- Dec 8, 2014 3:58:55 PM (11 years ago)
- Location:
- trunk/imports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/imports/G2phase.py ¶
r1598 r1599 427 427 dlg.Destroy() 428 428 SGlines = G2spc.SGPrint(SGData) 429 for l in SGlines: print l430 429 elif 'qi' in S[:2]: 431 430 if nqi: … … 518 517 Atom = [Name,aType,'',XYZ[0],XYZ[1],XYZ[2],1.0,SytSym,Mult,IA,Uiso] 519 518 Atom += Uij 519 Atom.append(ran.randint(0,sys.maxint)) 520 Atom.append([]) 521 Atom.append([]) 520 522 Atom.append({'SS1':{'waveType':waveType,'crenelType':crenelType,'Sfrac':Sfrac,'Spos':Spos,'Sadp':Sadp,'Smag':Smag}}) #SS2 is for (3+2), etc. 521 Atom.append(ran.randint(0,sys.maxint))522 523 Atoms.append(Atom) 523 524 file2.close() -
TabularUnified trunk/imports/G2sfact.py ¶
r1506 r1599 152 152 break 153 153 self.Super = numCols-9 #= 0,1,2,or 3 154 if self.Super > 1: 155 raise self.ImportException("Supersymmetry too high; GSAS-II limited to (3+1) supersymmetry") 154 156 return True #ColumnValidator(self, filepointer) 155 157 … … 167 169 h,k,l,m1,Fo,sigFo = S.split()[:6] 168 170 h,k,l,m1 = [int(h),int(k),int(l),int(m1)] 169 elif self.Super == 2:170 h,k,l,m1,m2,Fo,sigFo = S.split()[:7]171 h,k,l,m1,m2 = [int(h),int(k),int(l),int(m1),int(m2)]172 elif self.Super == 3:173 h,k,l,m1,m2,m3,Fo,sigFo = S.split()[:8]174 h,k,l,m1,m2,m3 = [int(h),int(k),int(l),int(m1),int(m2),int(m3)]175 171 except ValueError: #skipping text at front 176 172 text = S.split() … … 185 181 elif self.Super == 1: 186 182 self.RefDict['RefList'].append([h,k,l,m1,0,0,Fo,sigFo,0,Fo,0,0,0]) 187 elif self.Super == 2:188 self.RefDict['RefList'].append([h,k,l,m1,m2,0,0,Fo,sigFo,0,Fo,0,0,0])189 elif self.Super == 3:190 self.RefDict['RefList'].append([h,k,l,m1,m2,m3,0,0,Fo,sigFo,0,Fo,0,0,0])191 183 self.errors = 'Error after reading reflections (unexpected!)' 192 184 self.RefDict['RefList'] = np.array(self.RefDict['RefList'])
Note: See TracChangeset
for help on using the changeset viewer.