Changeset 3023268 in sasmodels
- Timestamp:
- Oct 11, 2016 9:42:46 AM (8 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:
- c1904f6
- Parents:
- eb8a82e
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sesans.py
reb8a82e r3023268 201 201 #wavelength = Converter(wavelength[1])(wavelength[0],"A") 202 202 #thickness = Converter(thickness[1])(thickness[0],"A") 203 Iq = Converter("1/cm")(Iq,"1/A") # All models default to inverse centimeters203 #Iq = Converter("1/cm")(Iq,"1/A") # All models default to inverse centimeters 204 204 SElength = Converter(SElength[1])(SElength[0],"A") 205 205 206 206 G = np.zeros_like(SElength, 'd') 207 #==============================================================================208 # Hankel Transform method if "wavelength" is a scalar; mono-chromatic SESANS209 #==============================================================================210 207 for i, SElength_i in enumerate(SElength): 211 208 integral = besselj(0, q*SElength_i)*Iq*q … … 222 219 #P = exp(thickness*wavelength**2/(4*pi**2)*(G-G0)) 223 220 P = (G-G0)/(4*pi**2) 221 #P=G-G0 224 222 225 223 return P
Note: See TracChangeset
for help on using the changeset viewer.