Changeset 1599 for trunk/imports


Ignore:
Timestamp:
Dec 8, 2014 3:58:55 PM (11 years ago)
Author:
vondreele
Message:

rationalize SS, RB & normal atom data; atId is after U23 followed by RB & SS stuff
revise Jana2K imports to have just 3+1 SS only & build atoms as above

Location:
trunk/imports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/imports/G2phase.py

    r1598 r1599  
    427427                    dlg.Destroy()
    428428                SGlines = G2spc.SGPrint(SGData)
    429                 for l in SGlines: print l
    430429            elif 'qi' in S[:2]:
    431430                if nqi:
     
    518517            Atom = [Name,aType,'',XYZ[0],XYZ[1],XYZ[2],1.0,SytSym,Mult,IA,Uiso]
    519518            Atom += Uij
     519            Atom.append(ran.randint(0,sys.maxint))
     520            Atom.append([])
     521            Atom.append([])
    520522            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))
    522523            Atoms.append(Atom)
    523524        file2.close()
  • TabularUnified trunk/imports/G2sfact.py

    r1506 r1599  
    152152                break
    153153        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")           
    154156        return True #ColumnValidator(self, filepointer)
    155157
     
    167169                        h,k,l,m1,Fo,sigFo = S.split()[:6]
    168170                        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)]                       
    175171                except ValueError:  #skipping text at front
    176172                    text = S.split()
     
    185181                elif self.Super == 1:
    186182                    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])
    191183            self.errors = 'Error after reading reflections (unexpected!)'
    192184            self.RefDict['RefList'] = np.array(self.RefDict['RefList'])
Note: See TracChangeset for help on using the changeset viewer.