Changeset 2c74c11 in sasmodels for sasmodels/models/teubner_strey.py
- Timestamp:
- Jul 24, 2016 10:56:45 PM (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:
- a4280bd
- Parents:
- f1765a2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/teubner_strey.py
rec45c4f r2c74c11 68 68 69 69 70 def form_volume(radius):71 return 1.072 73 70 def Iq(q, a2, c1, c2): 74 71 return 1. / np.polyval([c2, c1, a2], q**2) 75 72 Iq.vectorized = True # Iq accepts an array of q values 76 73 77 def Iqxy(qx, qy, a2, c1, c2):78 return Iq(sqrt(qx**2 + qy**2), a2, c1, c2)79 Iqxy.vectorized = True # Iqxy accepts arrays of qx, qy values80 81 # ER defaults to 0.082 83 # VR defaults to 1.084 85 74 demo = dict(scale=1, background=0, a2=0.1, c1=-30.0, c2=5000.0) 86 75 tests = [[{}, 0.2, 0.145927536232]]
Note: See TracChangeset
for help on using the changeset viewer.