Changeset c94577f in sasmodels


Ignore:
Timestamp:
Mar 20, 2016 10:56:38 AM (9 years ago)
Author:
awashington
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:
459e890
Parents:
a154ad16
Message:

Fix G0 calculation of Hankel transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sesans.py

    ra154ad16 rc94577f  
    189189        integral = besselj(0, q*SElength_i)*Iq*q 
    190190        G[i] = np.sum(integral) 
     191    G0 = np.sum(Iq*q) 
    191192 
    192193    # [m^-1] step size in q, needed for integration 
     
    195196    # integration step, convert q into [m**-1] and 2 pi circle integration 
    196197    G *= dq*1e10*2*pi 
    197  
    198     P = exp(thickness*wavelength**2/(4*pi**2)*(G-G[0])) 
     198    G0 *= dq*1e10*2*pi 
     199 
     200    P = exp(thickness*wavelength**2/(4*pi**2)*(G-G0)) 
    199201 
    200202    return P 
Note: See TracChangeset for help on using the changeset viewer.