Changeset b297ba9 in sasmodels for sasmodels/models/pearl_necklace.py
- Timestamp:
- Mar 20, 2019 7:03:50 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4e28511
- Parents:
- 0d362b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/pearl_necklace.py
rcf3d0ce rb297ba9 53 53 R Schweins and K Huber, *Particle Scattering Factor of Pearl Necklace Chains*, 54 54 *Macromol. Symp.* 211 (2004) 25-42 2004 55 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 55 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 56 56 """ 57 57 58 58 import numpy as np 59 from numpy import inf , pi59 from numpy import inf 60 60 61 61 name = "pearl_necklace" … … 96 96 source = ["lib/sas_Si.c", "lib/sas_3j1x_x.c", "pearl_necklace.c"] 97 97 single = False # use double precision unless told otherwise 98 effective_radius_type = [ 99 "equivalent volume sphere", 100 ] 101 98 effective_radius_type = ["equivalent volume sphere"] 99 102 100 def random(): 101 """Return a random parameter set for the model.""" 103 102 radius = 10**np.random.uniform(1, 3) # 1 - 1000 104 103 thick_string = 10**np.random.uniform(0, np.log10(radius)-1) # 1 - radius/10 … … 122 121 thick_string_pd=0.2, thick_string_pd_n=5, 123 122 ) 124 # ER function is not being used here, not that it is likely very sensible to 125 # include an S(Q) with this model, the default in sasview 5.0 would be to the 123 # ER function is not being used here, not that it is likely very sensible to 124 # include an S(Q) with this model, the default in sasview 5.0 would be to the 126 125 # "unconstrained" radius_effective. 127 126 #tests = [[{}, 0.001, 17380.245], [{}, 'ER', 115.39502]]
Note: See TracChangeset
for help on using the changeset viewer.