Changeset 404ebbd in sasmodels for sasmodels/models/lorentz.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/lorentz.py
r2c74c11 r404ebbd 30 30 description = """ 31 31 Model that evaluates a Lorentz (Ornstein-Zernicke) model. 32 32 33 33 I(q) = scale/( 1 + (q*L)^2 ) + bkd 34 35 The model has three parameters: 36 length =screening Length37 scale =scale factor38 background =incoherent background34 35 The model has three parameters: 36 length = screening Length 37 scale = scale factor 38 background = incoherent background 39 39 """ 40 40 category = "shape-independent" … … 48 48 """ 49 49 50 def random(): 51 import numpy as np 52 pars = dict( 53 #background=0, 54 scale=10**np.random.uniform(1, 4), 55 cor_length=10**np.random.uniform(0, 3), 56 ) 57 return pars 58 50 59 # parameters for demo 51 60 demo = dict(scale=1.0, background=0.0, cor_length=50.0)
Note: See TracChangeset
for help on using the changeset viewer.