Changeset b3e8629 in sasview for src/sas/qtgui/Calculators/DensityPanel.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/DensityPanel.py
- Property mode changed from 100644 to 100755
rb0c5e8c rb3e8629 14 14 15 15 def enum(*sequential, **named): 16 enums = dict( zip(sequential, range(len(sequential))), **named)16 enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 17 17 return type('Enum', (), enums) 18 18 … … 95 95 96 96 def dataChanged(self, top, bottom): 97 for index in xrange(top.row(), bottom.row() + 1):97 for index in range(top.row(), bottom.row() + 1): 98 98 if index == MODEL.MOLECULAR_FORMULA: 99 99 molarMass = toMolarMass(self.model.item(MODEL.MOLECULAR_FORMULA).text())
Note: See TracChangeset
for help on using the changeset viewer.