Changes in sasmodels/kernelpy.py [750ffa5:062c56d] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelpy.py

    r750ffa5 r062c56d  
    211211        if w > cutoff: 
    212212            I = form(*args) 
    213             positive = (I >= 0.0) 
     213            #positive = (I >= 0.0) 
    214214 
    215215            # Note: can precompute spherical correction if theta_index is not 
     
    219219                                    if theta_index >= 0 else 1.0) 
    220220            #spherical_correction = 1.0 
    221             ret += w * I * spherical_correction * positive 
    222             norm += w * positive 
     221            ret += w * I * spherical_correction #* positive 
     222            norm += w #* positive 
    223223 
    224224            # Volume normalization. 
     
    230230                vol_args = [args[index] for index in vol_index] 
    231231                vol_weight = np.prod(weight[vol_weight_index]) 
    232                 vol += vol_weight * form_volume(*vol_args) * positive 
    233                 vol_norm += vol_weight * positive 
     232                vol += vol_weight * form_volume(*vol_args) #* positive 
     233                vol_norm += vol_weight #* positive 
    234234 
    235235    positive = (vol * vol_norm != 0.0) 
Note: See TracChangeset for help on using the changeset viewer.