Changeset 485aee2 in sasmodels for sasmodels/models/bcc.py


Ignore:
Timestamp:
Mar 9, 2015 2:45:01 PM (9 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
3e428ec
Parents:
5ef0633
Message:

Trying to get us starting on the right foot with code style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/bcc.py

    r3c56da87 r485aee2  
    113113    assumed to be isotropic and characterized by a Gaussian distribution. 
    114114    """ 
    115 category="shape:paracrystal" 
     115category = "shape:paracrystal" 
    116116 
    117 parameters = [ 
    118 #   [ "name", "units", default, [lower, upper], "type","description" ], 
    119     [ "dnn", "Ang", 220, [-inf,inf],"","Nearest neighbour distance"], 
    120     [ "d_factor", "", 0.06,[-inf,inf],"","Paracrystal distortion factor" ], 
    121     [ "radius", "Ang",  40, [0, inf], "volume","Particle radius" ], 
    122     [ "sld", "1e-6/Ang^2", 4, [-inf,inf], "", "Particle scattering length density" ], 
    123     [ "solvent_sld", "1e-6/Ang^2", 1, [-inf,inf], "", "Solvent scattering length density" ], 
    124     [ "theta", "degrees", 60, [-inf, inf], "orientation","In plane angle" ], 
    125     [ "phi", "degrees", 60, [-inf, inf], "orientation","Out of plane angle" ], 
    126     [ "psi", "degrees", 60, [-inf,inf], "orientation","Out of plane angle"] 
    127     ] 
     117#             ["name", "units", default, [lower, upper], "type","description" ], 
     118parameters = [["dnn", "Ang", 220, [-inf, inf], "", "Nearest neighbour distance"], 
     119              ["d_factor", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 
     120              ["radius", "Ang", 40, [0, inf], "volume", "Particle radius"], 
     121              ["sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Particle scattering length density"], 
     122              ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 
     123              ["theta", "degrees", 60, [-inf, inf], "orientation", "In plane angle"], 
     124              ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"], 
     125              ["psi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"] 
     126             ] 
    128127 
    129 source = [ "lib/J1.c", "lib/gauss150.c", "bcc.c" ] 
     128source = ["lib/J1.c", "lib/gauss150.c", "bcc.c"] 
    130129 
    131130# parameters for demo 
     
    143142# For testing against the old sasview models, include the converted parameter 
    144143# names and the target sasview model name. 
    145 oldname='BCCrystalModel' 
    146 oldpars=dict(sld='sldSph', 
    147              solvent_sld='sldSolv') 
     144oldname = 'BCCrystalModel' 
     145oldpars = dict(sld='sldSph', solvent_sld='sldSolv') 
Note: See TracChangeset for help on using the changeset viewer.