Changeset 0766d6d in sasview for park_integration/src/sans/fit
- Timestamp:
- Oct 19, 2011 1:12:25 PM (13 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 3b70cc7
- Parents:
- 91a3860
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/src/sans/fit/AbstractFitEngine.py
rba7dceb r0766d6d 251 251 self.idx_unsmeared = (self.x >= self._qmin_unsmeared) \ 252 252 & (self.x <= self._qmax_unsmeared) 253 253 254 254 def get_fit_range(self): 255 255 """ … … 345 345 self.idx = (self.idx) & (self.mask) 346 346 self.idx = (self.idx) & (numpy.isfinite(self.data)) 347 347 348 348 def set_smearer(self, smearer): 349 349 """ … … 365 365 self.qmax = qmax 366 366 self.radius = numpy.sqrt(self.qx_data**2 + self.qy_data**2) 367 self.i ndex_model= ((self.qmin <= self.radius)&\367 self.idx = ((self.qmin <= self.radius)&\ 368 368 (self.radius <= self.qmax)) 369 369 self.idx = (self.idx) &(self.mask) 370 370 self.idx = (self.idx) & (numpy.isfinite(self.data)) 371 371 self.idx = (self.idx) & (self.res_err_data != 0) 372 372 373 373 def get_fit_range(self): 374 374 """ … … 392 392 # use only the data point within ROI range 393 393 res = (self.data[self.idx] - gn)/self.res_err_data[self.idx] 394 394 395 return res, gn 395 396 … … 460 461 #import thread 461 462 self.model.set_params(self.paramlist, params) 463 #print "params", params 462 464 self.true_res, theory = self.data.residuals(self.model.eval) 463 465 self.theory = copy.deepcopy(theory)
Note: See TracChangeset
for help on using the changeset viewer.