Changeset 9cb364a in sasview
- Timestamp:
- Apr 14, 2009 4:29:17 PM (16 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:
- 2a5bba7
- Parents:
- 25a608f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r7b78bb6 r9cb364a 495 495 from sans.guiframe.utils import check_value 496 496 flag = check_value( self.qmin, self.qmax) 497 err_image = self.data.err_ image497 err_image = self.data.err_data 498 498 if err_image==[] or err_image==None: 499 499 err_image= numpy.zeros(len(self.data.x_bins),len(self.data.y_bins)) 500 500 501 501 err_image[err_image==0]=1 502 502 503 res=[] 503 504 if flag== True: … … 511 512 if value >= math.pow(self.qmin_x,2) and value <= math.pow(self.qmax_x,2): 512 513 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] 514 515 chisqrji = (self.data.data[j][i]- self.model.runXY(temp ))/error 515 516 #Vector containing residuals
Note: See TracChangeset
for help on using the changeset viewer.