Changeset 4962519 in sasmodels for sasmodels/models/porod.py


Ignore:
Timestamp:
Oct 14, 2016 6:49:58 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
14838a3
Parents:
a5b6997
Message:

use square and cube instead of pow()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/porod.py

    r40a87fa r4962519  
    4141    """ 
    4242    with errstate(divide='ignore'): 
    43         return power(q, -4) 
     43        return q**-4 
    4444 
    4545Iq.vectorized = True  # Iq accepts an array of q values 
Note: See TracChangeset for help on using the changeset viewer.