Changeset 1169 for trunk/GSASIIspc.py
 Timestamp:
 Dec 17, 2013 9:38:23 AM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIspc.py
r973 r1169 252 252 def MT2text(M,T): 253 253 "From space group matrix/translation operator returns text version" 254 XYZ = ('Z ','Y ','X ','XY','ERR','YX',' X ',' Y ',' Z ','+X ','+Y ','+Z')254 XYZ = ('Z','Y','X','XY','ERR','YX','X','Y','Z') 255 255 TRA = (' ','ERR','1/6','1/4','1/3','ERR','1/2','ERR','2/3','3/4','5/6','ERR') 256 256 Fld = '' … … 258 258 IJ = int(round(2*M[j][0]+3*M[j][1]+4*M[j][2]+4))%12 259 259 IK = int(round(T[j]*12))%12 260 if IK > 0 and IJ > 4: IJ += 3 261 Fld += TRA[IK]+XYZ[IJ] 262 if j != 2: Fld += ',' 260 if IK: 261 if IJ < 3: 262 Fld += TRA[IK]+XYZ[IJ] 263 else: 264 Fld += TRA[IK]+'+'+XYZ[IJ] 265 else: 266 Fld += XYZ[IJ] 267 if j != 2: Fld += ', ' 263 268 return Fld 264 269
Note: See TracChangeset
for help on using the changeset viewer.