Changes in / [d24e390:f4b36fa] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r7b7fcf0 rb397165  
    8484        self.weight_matrix = pinhole_resolution(self.q_calc, self.q, 
    8585                                np.maximum(q_width, MINIMUM_RESOLUTION)) 
    86         self.q_calc = abs(self.q_calc) 
    8786 
    8887    def apply(self, theory): 
     
    126125        self.weight_matrix = \ 
    127126            slit_resolution(self.q_calc, self.q, qx_width, qy_width) 
    128         self.q_calc = abs(self.q_calc) 
    129127 
    130128    def apply(self, theory): 
     
    155153    # neither trapezoid nor Simpson's rule improved the accuracy. 
    156154    edges = bin_edges(q_calc) 
    157     #edges[edges < 0.0] = 0.0 # clip edges below zero 
     155    edges[edges < 0.0] = 0.0 # clip edges below zero 
    158156    cdf = erf((edges[:, None] - q[None, :]) / (sqrt(2.0)*q_width)[None, :]) 
    159157    weights = cdf[1:] - cdf[:-1] 
     
    288286    # The current algorithm is a midpoint rectangle rule. 
    289287    q_edges = bin_edges(q_calc) # Note: requires q > 0 
    290     #q_edges[q_edges < 0.0] = 0.0 # clip edges below zero 
     288    q_edges[q_edges < 0.0] = 0.0 # clip edges below zero 
    291289    weights = np.zeros((len(q), len(q_calc)), 'd') 
    292290 
Note: See TracChangeset for help on using the changeset viewer.