Changeset e65a3e7 in sasmodels for sasmodels/models/flexible_cylinder.py


Ignore:
Timestamp:
Mar 19, 2016 5:37:29 PM (8 years ago)
Author:
richardh
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:
aa24114
Parents:
81d3a0c
Message:

tidy docs and renam solvent_sld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/flexible_cylinder.py

    raa2edb2 re65a3e7  
    3030The Kuhn length $(b = 2*l_p)$ is also used to describe the stiffness of a chain. 
    3131 
    32 The returned value is in units of $cm^-1$, on absolute scale. 
     32The returned value is in units of $cm^{-1}$, on absolute scale. 
    3333 
    3434In the parameters, the sldCyl and sldSolv represent the SLD of the chain/cylinder 
     
    6565title = "Flexible cylinder where the form factor is normalized by the volume" \ 
    6666        "of the cylinder." 
    67 description = """Note : scale and contrast=sld-solvent_sld are both 
     67description = """Note : scale and contrast = (sld - sld_solvent) are both 
    6868                multiplicative factors in the model and are perfectly 
    6969                correlated. One or both of these parameters must be held fixed 
     
    7272 
    7373category = "shape:cylinder" 
    74 single = False 
     74single = False  # double precision only! 
    7575 
    7676# pylint: disable=bad-whitespace, line-too-long 
     
    8181    ["radius",      "Ang",         20.0, [0, inf],    "volume", "Radius of the flexible cylinder"], 
    8282    ["sld",         "1e-6/Ang^2",   1.0, [-inf, inf], "",       "Cylinder scattering length density"], 
    83     ["solvent_sld", "1e-6/Ang^2",   6.3, [-inf, inf], "",       "Solvent scattering length density"], 
     83    ["sld_solvent", "1e-6/Ang^2",   6.3, [-inf, inf], "",       "Solvent scattering length density"], 
    8484    ] 
    8585# pylint: enable=bad-whitespace, line-too-long 
     
    9191            radius=20.0, 
    9292            sld=1.0, 
    93             solvent_sld=6.3) 
     93            sld_solvent=6.3) 
    9494 
    9595oldname = 'FlexibleCylinderModel' 
    96 oldpars = dict(sld='sldCyl', solvent_sld='sldSolv') 
     96oldpars = dict(sld='sldCyl', sld_solvent='sldSolv') 
    9797 
    9898 
     
    104104    #  'radius':       20.0, 
    105105    #  'sld':           1.0, 
    106     #  'solvent_sld':   6.3, 
     106    #  'sld_solvent':   6.3, 
    107107    #  'background':    0.0001, 
    108108    #  }, 0.001, 3509.2187], 
     
    113113      'radius':       20.0, 
    114114      'sld':           1.0, 
    115       'solvent_sld':   6.3, 
     115      'sld_solvent':   6.3, 
    116116      'background':    0.0001, 
    117117     }, 1.0, 0.000595345], 
     
    120120      'radius':        2.0, 
    121121      'sld':           6.0, 
    122       'solvent_sld':  12.3, 
     122      'sld_solvent':  12.3, 
    123123      'background':    0.001, 
    124124     }, 0.1, 1.55228], 
     
    127127      'radius':       50.0, 
    128128      'sld':           0.1, 
    129       'solvent_sld':   5.1, 
     129      'sld_solvent':   5.1, 
    130130      'background':    0.0, 
    131131     }, 1.0, 0.000938456] 
Note: See TracChangeset for help on using the changeset viewer.