Changeset 999c87f in sasmodels


Ignore:
Timestamp:
Oct 24, 2016 8:42:26 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:
0890871
Parents:
aea515c
Message:

code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    raea515c r999c87f  
    208208        d = 2*math.pi*xi/k 
    209209 
    210         # solve quadratic phi (1-phi) = scale/(1e-4 8 pi drho^2 xi^3) 
     210        # solve quadratic phi (1-phi) = xi/(1e-4 8 pi drho^2 c2) 
    211211        # favour volume fraction in [0, 0.5] 
    212         c = xi/(p_c2*1e-4*8.0*math.pi*drho**2) 
     212        c = xi / (1e-4 * 8.0 * math.pi * drho**2 * p_c2) 
    213213        phi = 0.5 - math.sqrt(0.25 - c) 
    214214 
Note: See TracChangeset for help on using the changeset viewer.