Changeset 287d356 in sasview
- Timestamp:
- Sep 4, 2018 10:58:12 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- d738feb
- Parents:
- e3df84e
- Location:
- src/sas/qtgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
re3df84e r287d356 1136 1136 model_row = item.row() 1137 1137 name_index = self._poly_model.index(model_row, 0) 1138 parameter_name = str(name_index.data()) .lower()# "distribution of sld" etc.1139 if " distribution of" in parameter_name:1138 parameter_name = str(name_index.data()) # "distribution of sld" etc. 1139 if "istribution of" in parameter_name: 1140 1140 # just the last word 1141 1141 parameter_name = parameter_name.rsplit()[-1] -
src/sas/qtgui/Utilities/AddMultEditor.py
raed0532 r287d356 15 15 import re 16 16 import logging 17 import traceback 18 17 19 import sas.qtgui.Utilities.GuiUtils as GuiUtils 18 20 from sasmodels.sasview_model import load_standard_models … … 202 204 self.cbOperator.currentText()) 203 205 204 success = GuiUtils.checkModel(self.plugin_filename) 206 try: 207 success = GuiUtils.checkModel(self.plugin_filename) 208 except Exception as ex: 209 # broad exception from sasmodels 210 msg = "Error building model: "+ str(ex) 211 logging.error(msg) 212 #print three last lines of the stack trace 213 # this will point out the exact line failing 214 last_lines = traceback.format_exc().split('\n')[-4:] 215 traceback_to_show = '\n'.join(last_lines) 216 logging.error(traceback_to_show) 217 218 # Set the status bar message 219 self.parent.communicate.statusBarUpdateSignal.emit("Model check failed") 220 return 205 221 206 222 if not success:
Note: See TracChangeset
for help on using the changeset viewer.