Changeset 6280464 in sasview for src/sas/qtgui/Calculators/KiessigPanel.py
- Timestamp:
- Nov 3, 2017 10:58:39 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:
- 412e069e
- Parents:
- 304d082
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/KiessigPanel.py
r0849aec r6280464 55 55 self.thickness.set_deltaq(dq=float(self.deltaq_in.text())) 56 56 kiessing_result = self.thickness.compute_thickness() 57 float_as_str = "{:.3f}".format(kiessing_result) 58 self.lengthscale_out.setText(float_as_str) 57 if kiessing_result: 58 float_as_str = "{:.3f}".format(kiessing_result) 59 self.lengthscale_out.setText(float_as_str) 60 else: 61 # error or division by zero 62 self.lengthscale_out.setText("") 63 59 64 except (ArithmeticError, ValueError): 60 65 self.lengthscale_out.setText("")
Note: See TracChangeset
for help on using the changeset viewer.