Changeset 2091


Ignore:
Timestamp:
Dec 14, 2015 12:49:34 PM (6 years ago)
Author:
vondreele
Message:

fix phase name problem with '(' and ')'

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2079 r2091  
    14821482            if Id:     
    14831483                Phases = G2frame.PatternTree.GetItemPyData(Id)
    1484                 pick = str(G2frame.itemPicked).split('(')[1].strip(')')
     1484                pick = str(G2frame.itemPicked).split('(',1)[1][:-1]
    14851485                if 'line' not in pick:       #avoid data points, etc.
    14861486                    data = G2frame.PatternTree.GetItemPyData(PatternId)
  • trunk/GSASIIstrMain.py

    r2067 r2091  
    398398   
    399399            # a dict with values & esds for dependent (constrained) parameters
    400             depParmDict = {i:(parmDict[i],sigDict[i]) for i in varyListStart
    401                            if i not in varyList}
     400            depParmDict = {i:(parmDict[i],sigDict[i]) for i in varyListStart if i not in varyList}
    402401            newCellDict = copy.deepcopy(G2stMth.GetNewCellParms(parmDict,varyList))
    403402            newAtomDict = copy.deepcopy(G2stMth.ApplyXYZshifts(parmDict,varyList))
Note: See TracChangeset for help on using the changeset viewer.