Changeset 13913ec in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Feb 3, 2011 2:53:08 PM (14 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:
45ffa5e
Parents:
ec489f5
Message:

bug fixes: Q range Npts_fit and chisqr

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r3f6508f r13913ec  
    10631063                    self.set_npts2fit()  
    10641064            else: 
    1065                 index_data = ((self.qmin <= self.data.x)& \ 
    1066                               (self.data.x <= self.qmax)) 
    1067                 #self.Npts_fit.SetValue(str(len(self.data.x[index_data]))) 
    1068                 self.set_npts2fit()  
     1065                index_data = ((self.qmin_x <= self.data.x)& \ 
     1066                              (self.data.x <= self.qmax_x)) 
     1067                self.Npts_fit.SetValue(str(len(self.data.x[index_data]))) 
     1068 
    10691069            
    10701070        else: 
  • sansview/perspectives/fitting/fitting.py

    r6886000 r13913ec  
    13831383                return 
    13841384            x = data.x 
    1385             if qmin == DEFAULT_QMIN : 
    1386                 qmin = min(data.x) 
    1387             if qmax == DEFAULT_QMAX: 
    1388                 qmax = max(data.x)  
     1385             
     1386            if qmin == None : 
     1387                qmin == DEFAULT_QMIN 
     1388 
     1389            if qmax == None: 
     1390                qmax == DEFAULT_QMAX  
     1391                 
    13891392        if not enable1D: 
    13901393            return  
Note: See TracChangeset for help on using the changeset viewer.