Changeset 4985


Ignore:
Timestamp:
Jun 30, 2021 3:55:32 PM (2 years ago)
Author:
vondreele
Message:

fix mag sp gp special pos determination for P3m1 & P321 mag groups.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4965 r4985  
    5454import GSASIIsasd as G2sasd
    5555import G2shapes
     56import SUBGROUPS as kSUB
    5657VERY_LIGHT_GREY = wx.Colour(235,235,235)
    5758WACV = wx.ALIGN_CENTER_VERTICAL
  • trunk/GSASIIspc.py

    r4876 r4985  
    10701070                    magSym[j] += "'"
    10711071                    Ptsym[j-1] += "'"
    1072                 elif SpnFlp[2] == [-1,1]:
     1072                elif SpnFlp[2:4] == [-1,1]:
    10731073                    magSym[i] += "'"
    10741074                    Ptsym[i-1] += "'"
     
    12931293                Spn.append(1)
    12941294    else:                   #the rest; 3 generators. NB:  any ' before / in 1st field ignored
    1295         for fld in Flds[1:]:
    1296             iF = mSgSym[iB:].index(fld[0])+iB
    1297             jF = mSgSym[iF:].index(fld[-1])+iF
    1298             if "'" == mSgSym[jF+1]:
     1295        if '3' in Flds[1]:
     1296            if "'" in mSgSym:   #could be 1 or 2 '; doesn't matter.
    12991297                Spn.append(-1)
    1300                 iB = jF+2
    13011298            else:
    13021299                Spn.append(1)
    1303                 iB = jF+1
     1300        else:
     1301            for fld in Flds[1:]:
     1302                iF = mSgSym[iB:].index(fld[0])+iB
     1303                jF = mSgSym[iF:].index(fld[-1])+iF
     1304                if "'" == mSgSym[jF+1]:
     1305                    Spn.append(-1)
     1306                    iB = jF+2
     1307                else:
     1308                    Spn.append(1)
     1309                    iB = jF+1
    13041310    Spn.append(1)
    13051311    return Spn
Note: See TracChangeset for help on using the changeset viewer.