Changeset b297ba9 in sasmodels for sasmodels/weights.py
- Timestamp:
- Mar 20, 2019 7:03:50 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4e28511
- Parents:
- 0d362b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/weights.py
re2592f0 rb297ba9 58 58 # For orientation, the jitter is relative to 0 not the angle 59 59 center = 0 60 pass61 60 if sigma == 0 or self.npts < 2: 62 61 if lb <= center <= ub: … … 123 122 default = dict(npts=35, width=0, nsigmas=1.73205) 124 123 def _weights(self, center, sigma, lb, ub): 125 126 127 124 x = self._linspace(center, sigma, lb, ub) 125 x = x[np.fabs(x-center) <= np.fabs(sigma)*sqrt(3.0)] 126 return x, np.ones_like(x) 128 127 129 128 class LogNormalDispersion(Dispersion):
Note: See TracChangeset
for help on using the changeset viewer.