- Timestamp:
- Feb 27, 2017 9:58:22 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:
- 27ba79c
- Parents:
- cb05bfd
- Location:
- src/sas
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/qsmearing.py
rd3911e3 rbe36447 108 108 q_calc = self.resolution.q_calc 109 109 iq_calc = numpy.empty_like(q_calc) 110 if start > 0 :110 if start > 0 and self.model is not None: 111 111 iq_calc[:start] = self.model.evalDistribution(q_calc[:start]) 112 if end+1 < len(q_calc) :112 if end+1 < len(q_calc) and self.model is not None: 113 113 iq_calc[end+1:] = self.model.evalDistribution(q_calc[end+1:]) 114 114 iq_calc[start:end+1] = iq_in[first_bin:last_bin+1] -
src/sas/sasgui/perspectives/fitting/fitpage.py
r3d55219 rbe36447 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)166 pos = 0 167 if event is not None: 168 pos = self.dataSource.GetSelection() 169 169 elif self.dataSource.GetCount() > 0: 170 pos = self.dataSource.GetSelection()171 170 data = self.dataSource.GetClientData(pos) 172 171 self.set_data(data) … … 256 255 self.Bind(wx.EVT_RADIOBUTTON, self.onWeighting, 257 256 id=self.dI_idata.GetId()) 258 self.dI_ didata.SetValue(True)257 self.dI_noweight.SetValue(True) 259 258 # add 4 types of weighting to the sizer 260 259 sizer_weighting.Add(self.dI_noweight, 0, wx.LEFT, 10) … … 266 265 sizer_weighting.Add(self.dI_idata) 267 266 sizer_weighting.Add((10, 10)) 268 self.dI_noweight.Enable( False)267 self.dI_noweight.Enable(True) 269 268 self.dI_didata.Enable(False) 270 269 self.dI_sqrdata.Enable(False) … … 1627 1626 elif data.dxl is not None or data.dxw is not None: 1628 1627 self.smear_type = "Slit" 1629 if data.dxl is not None and n ot numpy.all(data.dxl, 0):1628 if data.dxl is not None and numpy.all(data.dxl, 0): 1630 1629 self.dq_l = data.dxl[0] 1631 if data.dxw is not None and n ot numpy.all(data.dxw, 0):1630 if data.dxw is not None and numpy.all(data.dxw, 0): 1632 1631 self.dq_r = data.dxw[0] 1633 1632 # return self.smear_type,self.dq_l,self.dq_r
Note: See TracChangeset
for help on using the changeset viewer.