Changeset 1502


Ignore:
Timestamp:
Sep 18, 2014 11:18:32 AM (7 years ago)
Author:
toby
Message:

Fix problem with constraint editing of floats converted to strings

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r1501 r1502  
    340340        elif self.type is float:
    341341            try:
    342                 float(val)
     342                val = float(val) # convert strings, if needed
    343343            except:
    344344                if self.CIFinput and (val == '?' or val == '.'):
  • trunk/GSASIImapvars.py

    r1496 r1502  
    526526
    527527    :param list varyList: a list of parameters names (strings of form
    528       ``<ph>:<hst>:<nam>``) that will be varied
     528      ``<ph>:<hst>:<nam>``) that will be varied. Note that this is changed here.
    529529   
    530530    :param dict constrDict: a list of dicts defining relationships/constraints
     
    794794            var,mult = var
    795795        else:
    796             raise Exception, "Cannot parse "+repr(var) + " as var or (var,multiplier)"
     796            raise Exception("Cannot parse "+repr(var) + " as var or (var,multiplier)")
    797797        mapList.append(var)
    798798        multlist.append(tuple((mult,)))
Note: See TracChangeset for help on using the changeset viewer.