Changeset 8f04da4 in sasmodels for sasmodels/models/hayter_msa.py
- Timestamp:
- Aug 2, 2017 2:53:56 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:
- bd21b12
- Parents:
- 1511c37c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hayter_msa.py
r5702f52 r8f04da4 64 64 Routine takes absolute value of charge, use HardSphere if charge 65 65 goes to zero. 66 In sasview the effective radius and volume fraction may be calculated 66 In sasview the effective radius and volume fraction may be calculated 67 67 from the parameters used in P(Q). 68 68 """ … … 89 89 # ER defaults to 0.0 90 90 # VR defaults to 1.0 91 92 def random(): 93 import numpy as np 94 # TODO: too many failures for random hayter_msa parameters 95 pars = dict( 96 scale=1, background=0, 97 radius_effective=10**np.random.uniform(1, 4.7), 98 volfraction=10**np.random.uniform(-2, 0), # high volume fraction 99 charge=min(int(10**np.random.uniform(0, 1.3)+0.5), 200), 100 temperature=10**np.random.uniform(0, np.log10(450)), # max T = 450 101 #concentration_salt=10**np.random.uniform(-3, 1), 102 dialectconst=10**np.random.uniform(0, 6), 103 #charge=10, 104 #temperature=318.16, 105 concentration_salt=0.0, 106 #dielectconst=71.08, 107 ) 108 return pars 91 109 92 110 # default parameter set, use compare.sh -midQ -linear
Note: See TracChangeset
for help on using the changeset viewer.