Changeset 8698a0d in sasmodels for sasmodels/weights.py
- Timestamp:
- Oct 17, 2017 11:53:01 PM (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/weights.py
rd4c33d6 r8698a0d 57 57 if not relative: 58 58 # For orientation, the jitter is relative to 0 not the angle 59 #center = 059 center = 0 60 60 pass 61 61 if sigma == 0 or self.npts < 2: … … 229 229 obj = cls(n, width, nsigmas) 230 230 v, w = obj.get_weights(value, limits[0], limits[1], relative) 231 return v, w 231 return v, w/np.sum(w) 232 232 233 233
Note: See TracChangeset
for help on using the changeset viewer.