Changeset 2bccb5a in sasmodels


Ignore:
Timestamp:
Oct 22, 2017 5:00:22 PM (7 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:
31eea1f
Parents:
e3571cb
Message:

tweak variable names in calculation for theta weights in jitter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/details.py

    r9e771a3 r2bccb5a  
    273273        # TODO: modify the dispersity vector to avoid the theta=-90,90,270,... 
    274274        theta_weight = abs(cos(radians(theta))) 
    275         weights = tuple(theta_weight*v if k == index else v 
    276                         for k, v in enumerate(weights)) 
     275        weights = tuple(theta_weight*w if k == index else w 
     276                        for k, w in enumerate(weights)) 
    277277    return weights 
    278278 
Note: See TracChangeset for help on using the changeset viewer.