Changeset 2691


Ignore:
Timestamp:
Feb 4, 2017 10:04:46 AM (5 years ago)
Author:
vondreele
Message:

fix Transform - cell constraints were wrong
needed to clear newPhaseDrawing? for new transformed phase & do a UsedHistogramsAndPhases?

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r2583 r2691  
    12751275                if not parm in varyList:
    12761276                    varyList.append(parm)
    1277                 DepCons.append([invTrans[Aid[0],Aid[0]]*invTrans[Aid[1],Aid[1]],G2obj.G2VarObj(parm)])
     1277                DepCons.append([Trans[Aid[0],Aid[0]]*Trans[Aid[1],Aid[1]],G2obj.G2VarObj(parm)])
    12781278        if len(DepCons) == 1:
    12791279            constraints['Phase'].append([IndpCon,DepCons[0],None,None,'e'])
  • trunk/GSASIIphsGUI.py

    r2665 r2691  
    13901390            G2gd.GetPatternTreeItemId(G2frame,G2frame.root,'Phases'),text=phaseName)
    13911391        G2frame.PatternTree.SetItemPyData(sub,newPhase)
     1392        newPhase['Drawing'] = []
     1393       
    13921394        if ifMag and ifConstr:
     1395            G2frame.GetUsedHistogramsAndPhasesfromTree()
    13931396            G2cnstG.MagConstraints(G2frame,data,newPhase,Trans,Vec,atCodes)     #data is old phase
    13941397        G2frame.PatternTree.SelectItem(sub)
Note: See TracChangeset for help on using the changeset viewer.