Changeset 9cb364a in sasview


Ignore:
Timestamp:
Apr 14, 2009 4:29:17 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
2a5bba7
Parents:
25a608f5
Message:

compute chisqr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    r7b78bb6 r9cb364a  
    495495        from sans.guiframe.utils import check_value 
    496496        flag = check_value( self.qmin, self.qmax) 
    497         err_image = self.data.err_image 
     497        err_image = self.data.err_data 
    498498        if err_image==[] or err_image==None: 
    499499            err_image= numpy.zeros(len(self.data.x_bins),len(self.data.y_bins)) 
    500500                        
    501501        err_image[err_image==0]=1 
     502        
    502503        res=[] 
    503504        if flag== True: 
     
    511512                        if value >= math.pow(self.qmin_x,2) and value <= math.pow(self.qmax_x,2): 
    512513                            temp = [self.data.x_bins[i],self.data.y_bins[j]] 
    513                             error= self.data.err_data[j][i] 
     514                            error= err_image[j][i] 
    514515                            chisqrji = (self.data.data[j][i]- self.model.runXY(temp ))/error 
    515516                            #Vector containing residuals 
Note: See TracChangeset for help on using the changeset viewer.