Ignore:
Timestamp:
Jun 26, 2018 4:18:47 AM (4 years ago)
Author:
vondreele
Message:

Add 'C -1' as possible Bravais lattice/space group for Unit cell GUI
fix odd business with basestring in py3. Code failed; just use basestring fine in py3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3447 r3452  
    33893389        # make lists of variables of different types along with lists of parameter names, histogram #s, phase #s,...
    33903390        self.parmNames = sorted(list(parmDict.keys()))
    3391         if '2' not in platform.python_version_tuple()[0]: basestring = str
    3392         splitNames = [item.split(':') for item in self.parmNames if len(item) > 3 and not isinstance(self.parmDict[item],basestring)]
     3391        basestr = basestring
     3392        splitNames = [item.split(':') for item in self.parmNames if len(item) > 3 and not isinstance(self.parmDict[item],basestr)]
    33933393        globNames = [':'.join(item) for item in splitNames if not item[0] and not item[1]]
    33943394        if len(globNames):
     
    34283428        count = 0
    34293429        for name in self.choiceDict[self.parmChoice]:
    3430             # skip entries without numerical values
    3431             if '2' not in platform.python_version_tuple()[0]: basestring = str
    3432             if isinstance(self.parmDict[name],basestring): continue
     3430            basestr = basestring
     3431            if isinstance(self.parmDict[name],basestr): continue
    34333432            if 'Refined' in self.listSel and (name not in self.fullVaryList
    34343433                                              ) and (name not in self.varyList):
Note: See TracChangeset for help on using the changeset viewer.