Changeset c155a16 in sasview for src/sas/sasgui/perspectives/fitting/basepage.py
- Timestamp:
- Apr 4, 2017 12:06:27 PM (8 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 463e7ffc
- Parents:
- 6722fae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
rb301db9 rc155a16 34 34 from sas.sasgui.guiframe.documentation_window import DocumentationWindow 35 35 36 logger = logging.getLogger() 36 37 37 38 (PageInfoEvent, EVT_PAGE_INFO) = wx.lib.newevent.NewEvent() … … 782 783 except Exception: 783 784 # Skip non-data lines 784 logg ing.error(traceback.format_exc())785 logger.error(traceback.format_exc()) 785 786 return numpy.array(angles), numpy.array(weights) 786 787 except: … … 1304 1305 [state.values, state.weights] 1305 1306 except Exception: 1306 logg ing.error(traceback.format_exc())1307 logger.error(traceback.format_exc()) 1307 1308 selection = self._find_polyfunc_selection(disp_model) 1308 1309 for list in self.fittable_param: … … 1321 1322 list[6].Disable() 1322 1323 except Exception: 1323 logg ing.error(traceback.format_exc())1324 logger.error(traceback.format_exc()) 1324 1325 # For array, disable all fixed params 1325 1326 if selection == 1: … … 1330 1331 item[2].Disable() 1331 1332 except Exception: 1332 logg ing.error(traceback.format_exc())1333 logger.error(traceback.format_exc()) 1333 1334 1334 1335 def _selectDlg(self): … … 1464 1465 self.Refresh() 1465 1466 1466 # logg ing.info("is_modified flag set to %g",is_modified)1467 # logger.info("is_modified flag set to %g",is_modified) 1467 1468 return is_modified 1468 1469 … … 1569 1570 self.save_current_state() 1570 1571 except Exception: 1571 logg ing.error(traceback.format_exc())1572 logger.error(traceback.format_exc()) 1572 1573 1573 1574 return flag, is_modified … … 2384 2385 self.model.set_dispersion(p, disp_model) 2385 2386 except Exception: 2386 logg ing.error(traceback.format_exc())2387 logger.error(traceback.format_exc()) 2387 2388 2388 2389 # save state into … … 2499 2500 self.Refresh() 2500 2501 except Exception: 2501 logg ing.error(traceback.format_exc())2502 logger.error(traceback.format_exc()) 2502 2503 # Error msg 2503 2504 msg = "Error occurred:" … … 2600 2601 del self.state.model._persistency_dict[name.split('.')[0]] 2601 2602 except Exception: 2602 logg ing.error(traceback.format_exc())2603 logger.error(traceback.format_exc()) 2603 2604 2604 2605 def _lay_out(self): … … 2742 2743 except Exception: 2743 2744 # Not for control panels 2744 logg ing.error(traceback.format_exc())2745 logger.error(traceback.format_exc()) 2745 2746 # Make sure the resduals plot goes to the last 2746 2747 if res_item is not None: … … 3075 3076 disfunc = str(item[7].GetValue()) 3076 3077 except Exception: 3077 logg ing.error(traceback.format_exc())3078 logger.error(traceback.format_exc()) 3078 3079 3079 3080 # 2D … … 3118 3119 disfunc += ' ' + str(weight) 3119 3120 except Exception: 3120 logg ing.error(traceback.format_exc())3121 logger.error(traceback.format_exc()) 3121 3122 content += name + ',' + str(check) + ',' + value + disfunc + ',' + \ 3122 3123 bound_lo + ',' + bound_hi + ':' … … 3389 3390 3390 3391 except Exception: 3391 logg ing.error(traceback.format_exc())3392 logger.error(traceback.format_exc()) 3392 3393 print "Error in BasePage._paste_poly_help: %s" % \ 3393 3394 sys.exc_info()[1]
Note: See TracChangeset
for help on using the changeset viewer.