Changeset d3911e3 in sasview for src/sas/sasgui
- Timestamp:
- Dec 20, 2016 5:45:00 AM (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.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 505706a
- Parents:
- d7d0182
- Location:
- src/sas/sasgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
rc8e1996 rd3911e3 1990 1990 wx.PostEvent(self, 1991 1991 StatusEvent(status="Completed saving.")) 1992 except :1992 except Exception: 1993 1993 msg = "Error occurred while saving: " 1994 msg += traceback.format_exc() 1994 1995 msg += "To save, the application panel should have a data set.." 1995 1996 wx.PostEvent(self, StatusEvent(status=msg)) … … 2040 2041 logging.warning(msg) 2041 2042 wx.PostEvent(self, StatusEvent(status=msg, info="error")) 2042 except :2043 except Exception: 2043 2044 msg = "Error occurred while saving: " 2045 msg += traceback.format_exc() 2044 2046 msg += "To save, at least one application panel " 2045 2047 msg += "should have a data set.." -
src/sas/sasgui/perspectives/fitting/basepage.py
rd7d0182 rd3911e3 1528 1528 index_data = ((self.qmin_x <= self.data.x) & 1529 1529 (self.data.x <= self.qmax_x)) 1530 val = str(len(self.data.x[index_data is True]))1530 val = str(len(self.data.x[index_data])) 1531 1531 self.Npts_fit.SetValue(val) 1532 1532 else: -
src/sas/sasgui/perspectives/fitting/model_thread.py
r286c757 rd3911e3 82 82 fn.set_model(self.model) 83 83 fn.set_index(index_model) 84 # Get necessary data from self.data and set the data for smearing85 fn.get_data()86 84 # Calculate smeared Intensity 87 85 #(by Gaussian averaging): DataLoader/smearing2d/Smearer2D() … … 89 87 else: 90 88 # calculation w/o smearing 91 value = self.model.evalDistribution(\ 92 [self.data.qx_data[index_model], 93 self.data.qy_data[index_model]]) 89 value = self.model.evalDistribution([ 90 self.data.qx_data[index_model], 91 self.data.qy_data[index_model] 92 ]) 94 93 output = numpy.zeros(len(self.data.qx_data)) 95 94 # output default is None
Note: See TracChangeset
for help on using the changeset viewer.