Changeset b297ba9 in sasmodels for sasmodels/models/ellipsoid.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/models/ellipsoid.py
r99658f6 rb297ba9 126 126 from numpy import inf, sin, cos, pi 127 127 128 try:129 from numpy import cbrt130 except ImportError:131 def cbrt(x): return x ** (1.0/3.0)132 133 128 name = "ellipsoid" 134 129 title = "Ellipsoid of revolution with uniform scattering length density." … … 174 169 175 170 def random(): 171 """Return a random parameter set for the model.""" 176 172 volume = 10**np.random.uniform(5, 12) 177 173 radius_polar = 10**np.random.uniform(1.3, 4)
Note: See TracChangeset
for help on using the changeset viewer.