Changeset 40a87fa in sasmodels for sasmodels/models/teubner_strey.py
- Timestamp:
- Aug 8, 2016 9:24:11 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 2472141
- Parents:
- 2d65d51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/teubner_strey.py
r2c74c11 r40a87fa 47 47 48 48 import numpy as np 49 from numpy import inf , sqrt49 from numpy import inf 50 50 51 51 name = "teubner_strey" … … 58 58 category = "shape-independent" 59 59 60 # ["name", "units", default, [lower, upper], "type","description"], 61 parameters = [["a2", "", 0.1, [0, inf], "", 62 "a2"], 63 ["c1", "1e-6/Ang^2", -30., [-inf, 0], "", 64 "c1"], 65 ["c2", "Ang", 5000., [0, inf], "volume", 66 "c2"], 67 ] 68 60 # ["name", "units", default, [lower, upper], "type","description"], 61 parameters = [ 62 ["a2", "", 0.1, [0, inf], "", "a2"], 63 ["c1", "1e-6/Ang^2", -30., [-inf, 0], "", "c1"], 64 ["c2", "Ang", 5000., [0, inf], "volume", "c2"], 65 ] 69 66 70 67 def Iq(q, a2, c1, c2): 68 """SAS form""" 71 69 return 1. / np.polyval([c2, c1, a2], q**2) 72 70 Iq.vectorized = True # Iq accepts an array of q values
Note: See TracChangeset
for help on using the changeset viewer.