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

    rec45c4f r2c74c11  
    4545             ] 
    4646 
    47 # No volume normalization despite having a volume parameter 
    48 # This should perhaps be volume normalized? 
    49 form_volume = """ 
    50     return 1.0; 
    51     """ 
    52  
    5347Iq = """ 
    5448    double scaled_dq = (q - q0)/sigma; 
     
    5650    """ 
    5751 
    58  
    59 Iqxy = """ 
    60     // never called since no orientation or magnetic parameters. 
    61     //return -1.0; 
    62     return Iq(sqrt(qx*qx + qy*qy), q0, sigma); 
    63     """ 
    64  
    65  
    6652# VR defaults to 1.0 
    6753 
Note: See TracChangeset for help on using the changeset viewer.