Changes in / [8fa3fb8:a97aebd] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
r3d55219 r2d568f6 164 164 On_select_data 165 165 """ 166 if event is None and self.dataSource.GetCount() > 0: 167 data = self.dataSource.GetClientData(0) 168 self.set_data(data) 169 elif self.dataSource.GetCount() > 0: 170 pos = self.dataSource.GetSelection() 166 if self.dataSource.GetCount() > 0: 167 pos = self.dataSource.GetSelection() if event is not None else 0 171 168 data = self.dataSource.GetClientData(pos) 172 169 self.set_data(data) … … 256 253 self.Bind(wx.EVT_RADIOBUTTON, self.onWeighting, 257 254 id=self.dI_idata.GetId()) 258 self.dI_ didata.SetValue(True)255 self.dI_noweight.SetValue(True) 259 256 # add 4 types of weighting to the sizer 260 257 sizer_weighting.Add(self.dI_noweight, 0, wx.LEFT, 10) … … 266 263 sizer_weighting.Add(self.dI_idata) 267 264 sizer_weighting.Add((10, 10)) 268 self.dI_noweight.Enable( False)265 self.dI_noweight.Enable(True) 269 266 self.dI_didata.Enable(False) 270 267 self.dI_sqrdata.Enable(False) … … 1271 1268 if copy_flag: 1272 1269 self.get_paste_params(copy_flag) 1273 1270 wx.CallAfter(self._onDraw, None) 1274 1271 1275 1272 else: … … 1627 1624 elif data.dxl is not None or data.dxw is not None: 1628 1625 self.smear_type = "Slit" 1629 if data.dxl is not None and n ot numpy.all(data.dxl, 0):1626 if data.dxl is not None and numpy.all(data.dxl, 0): 1630 1627 self.dq_l = data.dxl[0] 1631 if data.dxw is not None and n ot numpy.all(data.dxw, 0):1628 if data.dxw is not None and numpy.all(data.dxw, 0): 1632 1629 self.dq_r = data.dxw[0] 1633 1630 # return self.smear_type,self.dq_l,self.dq_r … … 2016 2013 self.EditMask_title.Disable() 2017 2014 2018 self.on Smear(event=None)2015 self.on_smear_helper() 2019 2016 self.on_set_focus(None) 2020 2017 self.Refresh() -
src/sas/sasgui/perspectives/fitting/model_thread.py
rc1681ea rc1c9929 177 177 unsmeared_output = numpy.zeros((len(self.data.x))) 178 178 unsmeared_output[first_bin:last_bin+1] = self.model.evalDistribution(mask) 179 self.smearer.model = self.model 179 180 output = self.smearer(unsmeared_output, first_bin, last_bin) 180 181
Note: See TracChangeset
for help on using the changeset viewer.