Changeset 2c74c11 in sasmodels for sasmodels/models/poly_gauss_coil.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/poly_gauss_coil.py

    r65279d8 r2c74c11  
    5050""" 
    5151 
    52 import numpy as np 
    53 from numpy import inf, exp, power, sqrt 
     52from numpy import inf, exp, power 
    5453 
    5554name =  "poly_gauss_coil" 
     
    8382Iq.vectorized =  True  # Iq accepts an array of q values 
    8483 
    85 def Iqxy(qx, qy, *args): 
    86     # pylint: disable = missing-docstring 
    87     return Iq(sqrt(qx ** 2 + qy ** 2), *args) 
    88 Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 
    89  
    9084demo =  dict(scale = 1.0, 
    9185            i_zero = 70.0, 
Note: See TracChangeset for help on using the changeset viewer.