Changeset b3e8629 in sasview for src/sas/qtgui/Calculators/SldPanel.py
- Timestamp:
- Nov 9, 2017 8:41:54 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:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/SldPanel.py
- Property mode changed from 100644 to 100755
rb0c5e8c rb3e8629 15 15 16 16 def enum(*sequential, **named): 17 enums = dict( zip(sequential, range(len(sequential))), **named)17 enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 18 18 return type('Enum', (), enums) 19 19 … … 60 60 if len(formula.atoms) != 1: 61 61 raise NotImplementedError() 62 energy = xray_energy( formula.atoms.keys()[0].K_alpha)62 energy = xray_energy(list(formula.atoms.keys())[0].K_alpha) 63 63 return xray_sld_from_atoms( 64 64 sld_formula.atoms, … … 142 142 self.model.setItem(MODEL.WAVELENGTH , QtGui.QStandardItem()) 143 143 144 for key in self._getOutputs().keys():144 for key in list(self._getOutputs().keys()): 145 145 self.model.setItem(key, QtGui.QStandardItem()) 146 146 … … 161 161 self.mapper.addMapping(self.ui.editWavelength , MODEL.WAVELENGTH) 162 162 163 for key, edit in self._getOutputs().ite ritems():163 for key, edit in self._getOutputs().items(): 164 164 self.mapper.addMapping(edit, key) 165 165 … … 168 168 def dataChanged(self, top, bottom): 169 169 update = False 170 for index in xrange(top.row(), bottom.row() + 1):170 for index in range(top.row(), bottom.row() + 1): 171 171 if (index == MODEL.MOLECULAR_FORMULA) or (index == MODEL.MASS_DENSITY) or (index == MODEL.WAVELENGTH): 172 172 update = True … … 202 202 pass 203 203 204 for key in self._getOutputs().keys():204 for key in list(self._getOutputs().keys()): 205 205 self.model.item(key).setText("") 206 206
Note: See TracChangeset
for help on using the changeset viewer.