Changeset bb46723 in sasmodels


Ignore:
Timestamp:
Sep 27, 2016 4:52:19 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f1a8811
Parents:
9acade6
Message:

conform to sasview definition of rectangular distribution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/weights.py

    r6cefbc9 rbb46723  
    103103    default = dict(npts=35, width=0, nsigmas=1.70325) 
    104104    def _weights(self, center, sigma, lb, ub): 
    105         x = self._linspace(center, sigma*sqrt(3.0), lb, ub) 
    106         px = np.ones_like(x) 
    107         return x, px 
     105        x = self._linspace(center, sigma, lb, ub) 
     106        x = x[np.fabs(x-center) <= np.fabs(sigma)*sqrt(3.0)] 
     107        return x, np.ones_like(x) 
    108108 
    109109 
Note: See TracChangeset for help on using the changeset viewer.