Changeset 3458
- Timestamp:
- Jun 28, 2018 4:50:46 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIctrlGUI.py ¶
r3452 r3458 3389 3389 # make lists of variables of different types along with lists of parameter names, histogram #s, phase #s,... 3390 3390 self.parmNames = sorted(list(parmDict.keys())) 3391 basestr = basestring 3391 if '2' in platform.python_version_tuple()[0]: 3392 basestr = basestring 3393 else: 3394 basestr = str 3392 3395 splitNames = [item.split(':') for item in self.parmNames if len(item) > 3 and not isinstance(self.parmDict[item],basestr)] 3393 3396 globNames = [':'.join(item) for item in splitNames if not item[0] and not item[1]] … … 3428 3431 count = 0 3429 3432 for name in self.choiceDict[self.parmChoice]: 3430 basestr = basestring 3433 if '2' in platform.python_version_tuple()[0]: 3434 basestr = basestring 3435 else: 3436 basestr = str 3431 3437 if isinstance(self.parmDict[name],basestr): continue 3432 3438 if 'Refined' in self.listSel and (name not in self.fullVaryList -
TabularUnified trunk/GSASIIexprGUI.py ¶
r3457 r3458 185 185 val = parmDict[key] 186 186 if '2' in platform.python_version_tuple()[0]: 187 string= basestring187 basestr = basestring 188 188 else: 189 string= str190 if isinstance(val, string): continue189 basestr = str 190 if isinstance(val, basestr): continue 191 191 try: 192 192 self.parmDict[key] = float(val) -
TabularUnified trunk/GSASIIobj.py ¶
r3447 r3458 2562 2562 ''' 2563 2563 # Patch: for old-style expressions with a (now removed step size) 2564 if '2' not in platform.python_version_tuple()[0]: basestring = str 2564 if '2' in platform.python_version_tuple()[0]: 2565 basestr = basestring 2566 else: 2567 basestr = str 2565 2568 for v in self.eObj.assgnVars: 2566 if not isinstance(self.eObj.assgnVars[v], basestr ing):2569 if not isinstance(self.eObj.assgnVars[v], basestr): 2567 2570 self.eObj.assgnVars[v] = self.eObj.assgnVars[v][0] 2568 2571 self.parmDict = {} … … 2582 2585 # look at first value in parmDict to determine its type 2583 2586 parmsInList = True 2584 if '2' not in platform.python_version_tuple()[0]: basestring = str 2587 if '2' in platform.python_version_tuple()[0]: 2588 basestr = basestring 2589 else: 2590 basestr = str 2585 2591 for key in parmDict: 2586 2592 val = parmDict[key] 2587 if isinstance(val, basestr ing):2593 if isinstance(val, basestr): 2588 2594 parmsInList = False 2589 2595 break
Note: See TracChangeset
for help on using the changeset viewer.