Changeset ec77322 in sasmodels


Ignore:
Timestamp:
Aug 1, 2016 7:34:35 PM (6 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:
c915373
Parents:
4edec6f
Message:

unified power Rg: properly initialize Iq to zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/unified_power_Rg.py

    r2c74c11 rec77322  
    8080 
    8181    with errstate(divide='ignore', invalid='ignore'): 
    82         result = np.empty(q.shape, 'd') 
     82        result = np.zeros(q.shape, 'd') 
    8383        for i in range(ilevel): 
    8484            exp_now = exp(-(q*rg[i])**2/3.) 
Note: See TracChangeset for help on using the changeset viewer.