Changeset 2d81cfe in sasmodels for sasmodels/models/_spherepy.py


Ignore:
Timestamp:
Nov 29, 2017 1:13:23 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
237b800f
Parents:
a839b22
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/_spherepy.py

    rec45c4f r2d81cfe  
    11r""" 
    2 For information about polarised and magnetic scattering, see  
     2For information about polarised and magnetic scattering, see 
    33the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 
    44 
     
    104104    dlow = d[low] 
    105105    dlow2 = dlow ** 2 
    106     g[low] = sqrt(1 - dlow2 / 4.) * (1 + dlow2 / 8.) + dlow2 / 2.*(1 - dlow2 / 16.) * log(dlow / (2. + sqrt(4. - dlow2))) 
     106    g[low] = (sqrt(1 - dlow2/4.) * (1 + dlow2/8.) 
     107              + dlow2/2.*(1 - dlow2/16.) * log(dlow / (2. + sqrt(4. - dlow2)))) 
    107108    return g 
    108109sesans.vectorized = True  # sesans accepts an array of z values 
Note: See TracChangeset for help on using the changeset viewer.