Changeset f39759c in sasmodels


Ignore:
Timestamp:
Apr 14, 2017 8:24:56 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
9901384
Parents:
eaa4458
Message:

use abs(cos(theta)) as before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/details.py

    r77bfb5f rf39759c  
    265265        index = parameters.theta_offset 
    266266        theta = values[index] 
    267         theta_weight = np.minimum(cos(radians(theta)), 1e-6) 
     267        theta_weight = np.minimum(abs(cos(radians(theta))), 1e-6) 
    268268        # copy the weights list so we can update it 
    269269        weights = list(weights) 
Note: See TracChangeset for help on using the changeset viewer.