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


Ignore:
Timestamp:
Nov 29, 2017 11:13:23 AM (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/stacked_disks.py

    r110f69c r2d81cfe  
    1010distribution. As such the normalization of this "composite" form factor is 
    1111relative to the individual disk volume, not the volume of the stack of disks. 
    12 This model is appropriate for example for non non exfoliated clay particles such 
    13 as Laponite. 
     12This model is appropriate for example for non non exfoliated clay particles 
     13such as Laponite. 
    1414 
    1515.. figure:: img/stacked_disks_geometry.png 
     
    3232    \Delta \rho_i = \rho_i - \rho_\text{solvent} 
    3333 
    34 and $N$ is the number of individual (single) discs per unit volume, $\alpha$ is 
    35 the angle between the axis of the disc and $q$, and $V_t$ and $V_c$ are the 
     34and $N$ is the number of individual (single) discs per unit volume, $\alpha$ 
     35is the angle between the axis of the disc and $q$, and $V_t$ and $V_c$ are the 
    3636total volume and the core volume of a single disc, respectively, and 
    3737 
     
    110110""" 
    111111 
     112import numpy as np 
    112113from numpy import inf, sin, cos, pi 
    113114 
     
    146147 
    147148def random(): 
    148     import numpy as np 
    149149    radius = 10**np.random.uniform(1, 4.7) 
    150150    total_stack = 10**np.random.uniform(1, 4.7) 
     
    212212      'scale': 0.01, 
    213213      'background': 0.001, 
    214 #     }, 0.001, 5065.12793824],    n_stacking=1 not 5 ? slight change in value here 11jan2017, check other cpu types 
    215 #     }, 0.001, 5075.11570493], 
     214      # n_stacking=1 not 5 ? slight change in value here 11jan2017, 
     215      # check other cpu types 
     216      #}, 0.001, 5065.12793824], 
     217      #}, 0.001, 5075.11570493], 
    216218     }, 0.001, 25325.635693], 
    217219    [{'thick_core': 10.0, 
     
    240242      'scale': 0.01, 
    241243      'background': 0.001, 
    242 #     }, 0.164, 0.0127673597265],    n_stacking=1 not 5 ?  slight change in value here 11jan2017, check other cpu types 
    243 #     }, 0.164, 0.01480812968], 
     244      # n_stacking=1 not 5 ?  slight change in value here 11jan2017, 
     245      # check other cpu types 
     246      #}, 0.164, 0.0127673597265], 
     247      #}, 0.164, 0.01480812968], 
    244248     }, 0.164, 0.0598367986509], 
    245249 
     
    256260      'scale': 0.01, 
    257261      'background': 0.001, 
    258 # second test here was at q=90, changed it to q=5, note I(q) is then just value of flat background 
     262      # second test here was at q=90, changed it to q=5, 
     263      # note I(q) is then just value of flat background 
    259264     }, [0.001, 5.0], [5075.12, 0.001]], 
    260265 
     
    272277      'background': 0.001, 
    273278     }, ([0.4, 0.5]), [0.00105074, 0.00121761]], 
    274 #    [{'thick_core': 10.0, 
    275 #      'thick_layer': 15.0, 
    276 #      'radius': 3000.0, 
    277 #      'n_stacking': 1.0, 
    278 #      'sigma_d': 0.0, 
    279 #      'sld_core': 4.0, 
    280 #      'sld_layer': -0.4, 
    281 #      'sld_solvent': 5.0, 
    282 #      'theta': 90.0, 
    283 #      'phi': 20.0, 
    284 #      'scale': 0.01, 
    285 #      'background': 0.001, 
    286 # 2017-05-18 PAK temporarily suppress output of qx,qy test; j1 is not accurate for large qr 
    287 #     }, (qx, qy), 0.0341738733124], 
    288 #     }, (qx, qy), None], 
     279    #[{'thick_core': 10.0, 
     280    #  'thick_layer': 15.0, 
     281    #  'radius': 3000.0, 
     282    #  'n_stacking': 1.0, 
     283    #  'sigma_d': 0.0, 
     284    #  'sld_core': 4.0, 
     285    #  'sld_layer': -0.4, 
     286    #  'sld_solvent': 5.0, 
     287    #  'theta': 90.0, 
     288    #  'phi': 20.0, 
     289    #  'scale': 0.01, 
     290    #  'background': 0.001, 
     291    # 2017-05-18 PAK temporarily suppress output of qx,qy test; j1 is 
     292    #     not accurate for large qr 
     293    # }, (qx, qy), 0.0341738733124], 
     294    # }, (qx, qy), None], 
    289295 
    290296    [{'thick_core': 10.0, 
Note: See TracChangeset for help on using the changeset viewer.