Changeset 40a87fa in sasmodels for sasmodels/models/unified_power_Rg.py


Ignore:
Timestamp:
Aug 8, 2016 9:24:11 AM (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:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/unified_power_Rg.py

    r785cbec r40a87fa  
    3737$q_i^*$ which is ignored here. 
    3838 
    39 For example, to approximate the scattering from random coils (Debye_ equation), 
     39For example, to approximate the scattering from random coils (Debye equation), 
    4040set $R_{gi}$ as the Guinier radius, $P_i = 2$, and $B_i = 2 G_i / R_{gi}$ 
    4141 
     
    6565from scipy.special import erf 
    6666 
     67category = "shape-independent" 
     68 
     69# pylint: disable=bad-whitespace, line-too-long 
    6770parameters = [ 
    6871    ["level",     "",     1,      [0, 6], "", "Level number"], 
     
    7275    ["G[level]",  "1/cm", 400,    [0, inf], "", ""], 
    7376    ] 
    74 category = "shape-independent" 
     77# pylint: enable=bad-whitespace, line-too-long 
    7578 
    7679def Iq(q, level, rg, power, B, G): 
     
    8790            exp_next = exp(-(q*rg[i+1])**2/3.) if i < ilevel-1 else 1. 
    8891            result += G[i]*exp_now + B[i]*exp_next*pow_now 
    89     result[q==0] = np.sum(G[:ilevel]) 
     92    result[q == 0] = np.sum(G[:ilevel]) 
    9093    return result 
    9194 
Note: See TracChangeset for help on using the changeset viewer.