Ignore:
Timestamp:
Apr 16, 2019 2:36:31 PM (3 years ago)
Author:
vondreele
Message:

fix to atom constraints from structure transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r3904 r3905  
    13361336    UseList = newPhase['Histograms']
    13371337    detTrans = np.abs(nl.det(Trans))
     1338    invTrans = nl.inv(Trans)
    13381339    opId = oldPhase['pId']
    13391340    npId = newPhase['pId']
     
    13691370            Opr *= -1
    13701371        XOpr = np.inner(Opr,Trans)
    1371         for ix in list(set(CSX[0])):
     1372        for i,ix in enumerate(list(CSX[0])):
    13721373            if not ix:
    13731374                continue
    1374             name = xnames[ix-1]
     1375            name = xnames[i]
    13751376            IndpCon = [1.0,G2obj.G2VarObj('%d::%s:%d'%(npId,name,ia))]
    13761377            DepCons = []
    1377             for iop,opval in enumerate(XOpr[ix-1]):
     1378            for iop,opval in enumerate(XOpr[i]):
    13781379                if opval:
    13791380                    DepCons.append([opval,G2obj.G2VarObj('%d::%s:%s'%(opId,xnames[iop],iat))])
Note: See TracChangeset for help on using the changeset viewer.