Changeset d813cf9a in sasview
- Timestamp:
- May 15, 2018 3:54:41 AM (7 years ago)
- Branches:
- ESS_GUI, 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:
- bc3debf8
- Parents:
- f9214aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/DensityPanel.py
raed0532 rd813cf9a 16 16 17 17 from sas.qtgui.Utilities.GuiUtils import enum 18 from sas.qtgui.Utilities.GuiUtils import formatNumber 18 19 19 20 MODEL = enum( … … 98 99 if index == MODEL.MOLECULAR_FORMULA: 99 100 molarMass = toMolarMass(self.model.item(MODEL.MOLECULAR_FORMULA).text()) 101 molarMass = formatNumber(molarMass, high=True) 100 102 self.model.item(MODEL.MOLAR_MASS).setText(molarMass) 101 103 … … 120 122 121 123 molarDensity = molarMass / molarVolume 124 molarDensity = formatNumber(molarDensity, high=True) 122 125 self.model.item(MODEL.MASS_DENSITY).setText(str(molarDensity)) 123 126 … … 131 134 132 135 molarVolume = molarMass / molarDensity 136 molarVolume = formatNumber(molarVolume, high=True) 133 137 self.model.item(MODEL.MOLAR_VOLUME).setText(str(molarVolume)) 134 138
Note: See TracChangeset
for help on using the changeset viewer.