Changeset b0b09b9 in sasview for src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
- Timestamp:
- Oct 26, 2017 3:13:05 AM (7 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:
- 895e7359
- Parents:
- def64a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
- Property mode changed from 100644 to 100755
r7d9c83c rb0b09b9 13 13 import sas.qtgui.Utilities.GuiUtils as GuiUtils 14 14 15 from UI.DataOperationUtilityUI import Ui_DataOperationUtility15 from .UI.DataOperationUtilityUI import Ui_DataOperationUtility 16 16 17 17 BG_WHITE = "background-color: rgb(255, 255, 255);" … … 76 76 self.filenames = filenames 77 77 78 if filenames.keys():78 if list(filenames.keys()): 79 79 # clear contents of comboboxes 80 80 self.cbData1.clear() … … 85 85 list_datafiles = [] 86 86 87 for key_id in filenames.keys():87 for key_id in list(filenames.keys()): 88 88 if filenames[key_id].get_data().title: 89 89 # filenames with titles … … 139 139 data1 = self.data1 140 140 data2 = self.data2 141 exec "output = data1 %s data2" % operator141 exec("output = data1 %s data2" % operator) 142 142 except: 143 143 raise … … 300 300 self.cbData1.setStyleSheet(QtCore.QString(BG_RED)) 301 301 self.cbData2.setStyleSheet(QtCore.QString(BG_RED)) 302 print self.data1.__class__.__name__ != self.data2.__class__.__name__302 print(self.data1.__class__.__name__ != self.data2.__class__.__name__) 303 303 logging.warning('Cannot compute data of different dimensions') 304 304 return False … … 354 354 def _findId(self, name): 355 355 """ find id of name in list of filenames """ 356 isinstance(name, basestring)357 358 for key_id in self.filenames.keys():356 isinstance(name, str) 357 358 for key_id in list(self.filenames.keys()): 359 359 # data with title 360 360 if self.filenames[key_id].get_data().title:
Note: See TracChangeset
for help on using the changeset viewer.