Changeset 48462b0 in sasmodels for sasmodels/models/surface_fractal.py
- Timestamp:
- Jul 31, 2017 1:24:42 AM (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:
- 109d963
- Parents:
- 404ebbd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/surface_fractal.py
r925ad6e r48462b0 74 74 source = ["lib/sas_3j1x_x.c", "lib/sas_gamma.c", "surface_fractal.c"] 75 75 76 demo = dict(scale=1, background=1e-5, 77 radius=10, fractal_dim_surf=2.0, cutoff_length=500) 76 def random(): 77 import numpy as np 78 radius = 10**np.random.uniform(1, 4) 79 fractal_dim_surf = np.random.uniform(1, 3-1e-6) 80 cutoff_length = 1e6 # Sets the low q limit; keep it big for sim 81 pars = dict( 82 #background=0, 83 scale=1, 84 radius=radius, 85 fractal_dim_surf=fractal_dim_surf, 86 cutoff_length=cutoff_length, 87 ) 88 return pars 78 89 79 90 tests = [
Note: See TracChangeset
for help on using the changeset viewer.