Changeset 0766d6d in sasview


Ignore:
Timestamp:
Oct 19, 2011 1:12:25 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

fixed 2d qrange set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/src/sans/fit/AbstractFitEngine.py

    rba7dceb r0766d6d  
    251251        self.idx_unsmeared = (self.x >= self._qmin_unsmeared) \ 
    252252                            & (self.x <= self._qmax_unsmeared) 
    253    
     253 
    254254    def get_fit_range(self): 
    255255        """ 
     
    345345        self.idx = (self.idx) & (self.mask) 
    346346        self.idx = (self.idx) & (numpy.isfinite(self.data)) 
    347          
     347 
    348348    def set_smearer(self, smearer):   
    349349        """ 
     
    365365            self.qmax = qmax         
    366366        self.radius = numpy.sqrt(self.qx_data**2 + self.qy_data**2) 
    367         self.index_model = ((self.qmin <= self.radius)&\ 
     367        self.idx = ((self.qmin <= self.radius)&\ 
    368368                            (self.radius <= self.qmax)) 
    369369        self.idx = (self.idx) &(self.mask) 
    370370        self.idx = (self.idx) & (numpy.isfinite(self.data)) 
    371371        self.idx = (self.idx) & (self.res_err_data != 0) 
    372          
     372 
    373373    def get_fit_range(self): 
    374374        """ 
     
    392392        # use only the data point within ROI range 
    393393        res = (self.data[self.idx] - gn)/self.res_err_data[self.idx] 
     394 
    394395        return res, gn  
    395396         
     
    460461        #import thread 
    461462        self.model.set_params(self.paramlist, params) 
     463        #print "params", params 
    462464        self.true_res, theory = self.data.residuals(self.model.eval) 
    463465        self.theory = copy.deepcopy(theory) 
Note: See TracChangeset for help on using the changeset viewer.