Changeset 1ce6e82 in sasmodels
- Timestamp:
- Feb 18, 2016 12:43:51 PM (9 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:
- 21d1031
- Parents:
- cc3fac6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/guinier_porod.py
rcc3fac6 r1ce6e82 89 89 # pylint: enable=bad-whitespace, line-too-long 90 90 91 91 # pylint: disable=C0103 92 92 def Iq(q, rg, s, m): 93 93 """ … … 105 105 q1 = sqrt((n-3.0+m)*n/2.0)/rg 106 106 if q < q1: 107 F = (1.0/power(q,(3.0-n)))*exp((-q*q*rg*rg)/n)107 iq = (1.0/power(q, (3.0-n)))*exp((-q*q*rg*rg)/n) 108 108 else: 109 F= (1.0/power(q, m))*exp(-(n-3.0+m)/2.0)*power(((n-3.0+m)*n/2.0),110 ((n-3.0+m)/2.0))/power(rg,(n-3.0+m))111 return F109 iq = (1.0/power(q, m))*exp(-(n-3.0+m)/2.0)*power(((n-3.0+m)*n/2.0), 110 ((n-3.0+m)/2.0))/power(rg, (n-3.0+m)) 111 return iq 112 112 113 113 Iq.vectorized = False # Iq accepts an array of q values
Note: See TracChangeset
for help on using the changeset viewer.