Changeset 31df0c9 in sasmodels for sasmodels/models/flexible_cylinder.py
- Timestamp:
- Aug 1, 2017 4:38:47 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:
- 1511c37c
- Parents:
- d49ca5c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/flexible_cylinder.py
r42356c8 r31df0c9 86 86 source = ["lib/polevl.c", "lib/sas_J1.c", "lib/wrc_cyl.c", "flexible_cylinder.c"] 87 87 88 demo = dict(scale=1.0, background=0.0001, 89 length=1000.0, 90 kuhn_length=100.0, 91 radius=20.0, 92 sld=1.0, 93 sld_solvent=6.3) 88 def random(): 89 import numpy as np 90 length = 10**np.random.uniform(2, 6) 91 radius = 10**np.random.uniform(1, 3) 92 kuhn_length = 10**np.random.uniform(-2, -0.7)*length # at least 10 segments 93 pars = dict( 94 length=length, 95 radius=radius, 96 kuhn_length=kuhn_length, 97 ) 98 return pars 94 99 95 100 tests = [
Note: See TracChangeset
for help on using the changeset viewer.