Changeset 8698a0d in sasmodels for sasmodels/weights.py


Ignore:
Timestamp:
Oct 17, 2017 11:53:01 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:
32f87a5
Parents:
becded3
git-author:
Paul Kienzle <pkienzle@…> (10/17/17 18:23:09)
git-committer:
Paul Kienzle <pkienzle@…> (10/17/17 23:53:01)
Message:

revise api for oriented shapes, allowing jitter in the frame of the sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/weights.py

    rd4c33d6 r8698a0d  
    5757        if not relative: 
    5858            # For orientation, the jitter is relative to 0 not the angle 
    59             #center = 0 
     59            center = 0 
    6060            pass 
    6161        if sigma == 0 or self.npts < 2: 
     
    229229    obj = cls(n, width, nsigmas) 
    230230    v, w = obj.get_weights(value, limits[0], limits[1], relative) 
    231     return v, w 
     231    return v, w/np.sum(w) 
    232232 
    233233 
Note: See TracChangeset for help on using the changeset viewer.