Changeset 2d81cfe in sasmodels for sasmodels/models/lamellar.py
- Timestamp:
- Nov 29, 2017 11:13:23 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lamellar.py
r1511c37c r2d81cfe 43 43 44 44 also in J. Phys. Chem. B, 105, (2001) 11081-11088 45 46 47 45 """ 48 46 47 import numpy as np 49 48 from numpy import inf 50 49 … … 90 89 91 90 def random(): 92 import numpy as np93 91 thickness = 10**np.random.uniform(1, 4) 94 92 pars = dict( … … 104 102 thickness=40, 105 103 thickness_pd=0.2, thickness_pd_n=40) 104 # [(qx1, qy1), (qx2, qy2), ...], [I(qx1,qy1), I(qx2,qy2), ...]], 106 105 tests = [ 107 [{'scale': 1.0, 'background': 0.0, 'thickness': 50.0,108 109 110 111 # ADDED by: converted by PAK? (or RKH?) ON: 16Mar2016 - RKH adding unit tests from sasview to early 2015 conversion112 # [(qx1, qy1), (qx2, qy2), ...], [I(qx1,qy1), I(qx2,qy2), ...]],106 [{'scale': 1.0, 'background': 0.0, 'thickness': 50.0, 107 'sld': 1.0, 'sld_solvent': 6.3, 'thickness_pd': 0.0}, 108 [0.001], [882289.54309]] 109 ] 110 # ADDED by: converted by PAK? (or RKH?) 111 # ON: 16Mar2016 - RKH adding unit tests from sasview to early 2015 conversion
Note: See TracChangeset
for help on using the changeset viewer.