Changeset 15ff344 in sasview


Ignore:
Timestamp:
Apr 27, 2009 12:15:12 PM (16 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:
52611f5
Parents:
90db8e8
Message:

fixed more about dy

File:
1 edited

Legend:

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

    r2b63df0 r15ff344  
    5656            self.dy= numpy.zeros(len(self.y)) 
    5757        self.dy[self.dy==0]=1 
    58          
    5958        if self.qmin==None: 
    6059            self.qmin= min(self.x) 
     
    7372                # Check whether we need to bail out 
    7473                self.isquit()    
    75                 fx[i_x]=self.model.run(i_x) 
     74                fx[i_x]=self.model.run(self.x[i_x]) 
    7675                 
    7776            if self.smearer!=None: 
     
    8281                temp=(self.y[i_y] - fx[i_y])/self.dy[i_y] 
    8382                res.append(temp*temp) 
     83             
     84             
    8485            #sum of residuals 
    8586            sum=0 
Note: See TracChangeset for help on using the changeset viewer.