Changeset 4823 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Feb 20, 2021 1:25:23 PM (2 years ago)
Author:
toby
Message:

fix naming of new variable constraints; label them & improve constraint help text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrIO.py

    r4814 r4823  
    191191    fixedList = []
    192192    ignored = 0
     193    namedVarList = []
    193194    for item in constList:
    194195        if item[-1] == 'h':
     
    214215                if varname is not None:
    215216                    varname = str(varname) # in case this is a G2VarObj
    216                     if ':' in varname:
     217                    if varname.startswith(':'):
    217218                        D['_name'] = varname
    218219                    else:
    219                         D['_name'] = '::' + varname
     220                        D['_name'] = '::nv-' + varname
     221                    D['_name'] = G2obj.MakeUniqueLabel(D['_name'],namedVarList)
    220222                D['_vary'] = varyFlag == True # force to bool
    221223                constDict.append(D)
Note: See TracChangeset for help on using the changeset viewer.