Changeset 2c74c11 in sasmodels for sasmodels/models/gauss_lorentz_gel.py


Ignore:
Timestamp:
Jul 24, 2016 10:56:45 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

implicit Iqxy; fix divide by 0 for q=0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/gauss_lorentz_gel.py

    rec45c4f r2c74c11  
    4343""" 
    4444 
    45 from numpy import inf, sqrt, exp 
     45from numpy import inf, exp 
    4646 
    4747name = "gauss_lorentz_gel" 
     
    9494 
    9595 
    96 def Iqxy(qx, qy, *args): 
    97     """ 
    98     :param qx:   Input q_x-value 
    99     :param qy:   Input q_y-value 
    100     :param args: Remaining aruments 
    101     :return:     2-D intensity 
    102     """ 
    103  
    104     return Iq(sqrt(qx**2 + qy**2), *args) 
    105  
    106 Iqxy.vectorized = True  # Iqxy accepts an array of qx, qy values 
    107  
    108  
    10996demo = dict(scale=1, background=0.1, 
    11097            gauss_scale_factor=100.0, 
Note: See TracChangeset for help on using the changeset viewer.