Changeset 1169 for trunk/GSASIIspc.py


Ignore:
Timestamp:
Dec 17, 2013 9:38:23 AM (8 years ago)
Author:
vondreele
Message:

fix space group ops. cif output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIspc.py

    r973 r1169  
    252252def MT2text(M,T):
    253253    "From space group matrix/translation operator returns text version"
    254     XYZ = ('-Z ','-Y ','-X ','X-Y','ERR','Y-X',' X ',' Y ',' Z ','+X ','+Y ','+Z ')
     254    XYZ = ('-Z','-Y','-X','X-Y','ERR','Y-X','X','Y','Z')
    255255    TRA = ('   ','ERR','1/6','1/4','1/3','ERR','1/2','ERR','2/3','3/4','5/6','ERR')
    256256    Fld = ''
     
    258258        IJ = int(round(2*M[j][0]+3*M[j][1]+4*M[j][2]+4))%12
    259259        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 += ', '
    263268    return Fld
    264269   
Note: See TracChangeset for help on using the changeset viewer.