Changeset 09975cbb in sasview


Ignore:
Timestamp:
Apr 21, 2009 9:31:03 AM (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:
658032c
Parents:
4bbc54a
Message:

Skip all Q=0 point on fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    r773806e r09975cbb  
    211211         
    212212        ## Min Q-value 
    213         #Skip the Q=0 point, especially when y(q=0)=None at x[0]. 
    214         if min (self.data.x) ==0.0 and self.data.x[0]==0 and not numpy.isfinite(self.data.y[0]): 
     213        #Skip the Q=0 point. 
     214        if min (self.data.x) ==0.0: 
    215215            self.qmin = min(self.data.x[self.data.x!=0]) 
    216216        else:                               
     
    223223        """ to set the fit range""" 
    224224         
    225         # Remove or do not allow fitting on the Q=0 point, especially when y(q=0)=None at x[0]. 
     225        # Skip Q=0 point, (especially for y(q=0)=None at x[0]). 
    226226        #ToDo: Fix this. 
    227         if qmin==0.0 and self.data.x[0]==0 and not numpy.isfinite(self.data.y[0]): 
     227        if qmin==0.0: 
    228228            self.qmin = min(self.data.x[self.data.x!=0]) 
    229229        elif qmin!=None:                        
Note: See TracChangeset for help on using the changeset viewer.