Changeset fa81e94 in sasview for src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py
- Timestamp:
- Nov 15, 2017 2:33:09 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- d4881f6a
- Parents:
- 7c487846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py
- Property mode changed from 100644 to 100755
ra1b8fee rfa81e94 3 3 This module relies on guiframe manager. 4 4 """ 5 from __future__ import print_function 5 6 6 7 7 import wx … … 228 228 sizer.Add(unit_title, (iy, ix), (1, 1), \ 229 229 wx.EXPAND | wx.ADJUST_MINSIZE, 0) 230 key_list = params.keys()230 key_list = list(params.keys()) 231 231 key_list.sort() 232 232 for param in key_list: … … 560 560 if self.parent.parent is None: 561 561 return 562 msg = "Generic SAS Calculator: %s" % (sys.exc_ value)562 msg = "Generic SAS Calculator: %s" % (sys.exc_info()[1]) 563 563 wx.PostEvent(self.parent.parent, 564 564 StatusEvent(status=msg, type='stop')) … … 761 761 # II. Plot selective points in color 762 762 other_color = np.ones(len(pix_symbol), dtype='bool') 763 for key in color_dic.keys():763 for key in list(color_dic.keys()): 764 764 chosen_color = pix_symbol == key 765 765 if np.any(chosen_color): … … 775 775 # Get atom names not in the list 776 776 a_names = [symb for symb in pix_symbol \ 777 if symb not in color_dic.keys()]777 if symb not in list(color_dic.keys())] 778 778 a_name = a_names[0] 779 779 for name in a_names: … … 899 899 900 900 except: 901 msg = "%s." % sys.exc_ value901 msg = "%s." % sys.exc_info()[1] 902 902 status_type = 'stop' 903 903 self._status_info(msg, status_type) … … 1285 1285 else: 1286 1286 sld_sets[list[0]] = None 1287 for key in sld_sets.keys():1287 for key in list(sld_sets.keys()): 1288 1288 key_low = key.lower() 1289 1289 if key_low.count('mx') > 0: … … 1336 1336 return 1337 1337 1338 for key in sets.keys():1338 for key in list(sets.keys()): 1339 1339 setattr(omfdata, key, sets[key]) 1340 1340 … … 1345 1345 self.sld_data.filename = "Default SLD Profile" 1346 1346 except: 1347 msg = "OMF Panel: %s" % sys.exc_ value1347 msg = "OMF Panel: %s" % sys.exc_info()[1] 1348 1348 infor = 'Error' 1349 1349 #logger.error(msg) … … 1375 1375 step_list = self._get_step_key_list(omfdata) 1376 1376 for ctr_list in self.nodes: 1377 for key in nodes_list.keys():1377 for key in list(nodes_list.keys()): 1378 1378 if ctr_list[0] == key: 1379 1379 ctr_list[1].SetValue(format_number(nodes_list[key], True)) … … 1381 1381 break 1382 1382 for ctr_list in self.stepsize: 1383 for key in step_list.keys():1383 for key in list(step_list.keys()): 1384 1384 if ctr_list[0] == key: 1385 1385 ctr_list[1].SetValue(format_number(step_list[key], True)) … … 1442 1442 sld_key_list = self._get_slds_key_list(omfdata) 1443 1443 # Dic is not sorted 1444 key_list = [key for key in sld_key_list.keys()]1444 key_list = [key for key in list(sld_key_list.keys())] 1445 1445 # Sort here 1446 1446 key_list.sort() … … 1485 1485 ix = 0 1486 1486 iy = -1 1487 for key, value in key_list.ite ritems():1487 for key, value in key_list.items(): 1488 1488 iy += 1 1489 1489 ix = 0 … … 1521 1521 iy = -1 1522 1522 #key_list.sort() 1523 for key, value in key_list.ite ritems():1523 for key, value in key_list.items(): 1524 1524 iy += 1 1525 1525 ix = 0 … … 1641 1641 sld_list = self._get_slds_key_list(sld_data) 1642 1642 for ctr_list in self.slds: 1643 for key in sld_list.keys():1643 for key in list(sld_list.keys()): 1644 1644 if ctr_list[0] == key: 1645 1645 min_val = np.min(sld_list[key])
Note: See TracChangeset
for help on using the changeset viewer.