Changeset 404ebbd in sasmodels for sasmodels/models/dab.py
- Timestamp:
- Jul 29, 2017 10:56:22 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 48462b0
- Parents:
- a151caa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/dab.py
r4962519 r404ebbd 61 61 double numerator = cube(cor_length); 62 62 double denominator = square(1 + square(q*cor_length)); 63 63 64 64 return numerator / denominator ; 65 65 """ 66 67 def random(): 68 import numpy as np 69 pars = dict( 70 scale=10**np.random.uniform(1, 4), 71 cor_length=10**np.random.uniform(0.3, 3), 72 #background = 0, 73 ) 74 pars['scale'] /= pars['cor_length']**3 75 return pars 66 76 67 77 # ER defaults to 1.0
Note: See TracChangeset
for help on using the changeset viewer.