Changeset b7d432f in sasmodels


Ignore:
Timestamp:
Mar 9, 2015 9:52:41 AM (10 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:
6c82120
Parents:
9f6f2f8
Message:

Clean up, and put back sanity in pylint.rc

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extra/pylint.rc

    r3c56da87 rb7d432f  
    2020# List of plugins (as comma separated values of python modules names) to load, 
    2121# usually to register additional checkers. 
    22 load-plugins=pylint_numpy,pylint_pyopencl 
     22#load-plugins=pylint_numpy,pylint_pyopencl 
    2323 
    2424# Use multiple processes to speed up Pylint. 
     
    6060disable= 
    6161    multiple-statements, 
    62     global-statement, 
    6362    bare-except, 
    6463    broad-except, 
    65     bad-whitespace, 
    66     bad-continuation, 
    6764    too-many-statements, 
    6865    too-many-branches, 
     
    7370    unbalanced-tuple-unpacking, 
    7471    locally-disabled, 
    75     old-style-class, 
    7672 
    7773[REPORTS] 
     
    205201 
    206202# Maximum number of characters on a single line. 
    207 #max-line-length=100 
    208 max-line-length=80 
     203max-line-length=100 
    209204 
    210205# Regexp for a line that is allowed to be longer than the limit. 
  • sasmodels/models/HayterMSAsq.py

    r9f6f2f8 rb7d432f  
    5050from numpy import pi, inf 
    5151 
    52 source=["HayterMSAsq_kernel.c"] 
     52source = ["HayterMSAsq_kernel.c"] 
    5353 
    5454name = "HayterMSAsq" 
    5555title = "Hayter-Penfold MSA charged sphere interparticle S(Q) structure factor" 
    5656description = """\ 
    57         [Hayter-Penfold MSA charged sphere interparticle S(Q) structure factor] 
     57    [Hayter-Penfold MSA charged sphere interparticle S(Q) structure factor] 
    5858        Interparticle structure factor S(Q)for a charged hard spheres. 
    59         Routine takes absolute value of charge, use HardSphere if charge goes to zero.           
    60                 In sasview the effective radius will be calculated from the  
    61                 parameters used in P(Q). 
     59        Routine takes absolute value of charge, use HardSphere if charge goes to zero. 
     60        In sasview the effective radius will be calculated from the 
     61        parameters used in P(Q). 
    6262""" 
     63#             [ "name", "units", default, [lower, upper], "type", "description" ], 
     64parameters = [["effect_radius", "Ang", 20.75, [0, inf], "volume", 
     65               "effective radius of hard sphere"], 
     66              ["charge", "e", 19.0, [0, inf], "", 
     67               "charge on sphere (in electrons)"], 
     68              ["volfraction", "", 0.0192, [0, 0.74], "", 
     69               "volume fraction of spheres"], 
     70              ["temperature", "K", 318.16, [0, inf], "", 
     71               "temperature, in Kelvin, for Debye length calculation"], 
     72              ["saltconc", "M", 0.0, [-inf, inf], "", 
     73               "conc of salt, 1:1 electolyte, for Debye length"], 
     74              ["dielectconst", "", 71.08, [-inf, inf], "", 
     75               "dielectric constant of solvent (default water), for Debye length"], 
     76             ] 
    6377 
    64 parameters = [ 
    65 #   [ "name", "units", default, [lower, upper], "type", 
    66 #     "description" ], 
    67     [ "effect_radius", "Ang",  20.75, [0, inf], "volume", 
    68       "effective radius of hard sphere" ], 
    69     [ "charge", "e",  19.0, [0, inf], "", 
    70       "charge on sphere (in electrons)" ], 
    71     [ "volfraction", "",  0.0192, [0, 0.74], "", 
    72       "volume fraction of spheres" ], 
    73     [ "temperature", "K", 318.16, [0, inf], "", 
    74       "temperature, in Kelvin, for Debye length calculation" ], 
    75     [ "saltconc", "M",  0.0, [-inf,inf], "", 
    76       "conc of salt, 1:1 electolyte, for Debye length" ], 
    77     [ "dielectconst", "",  71.08, [-inf,inf], "", 
    78       "dielectric constant of solvent (default water), for Debye length" ], 
    79     ] 
    80          
    8178# No volume normalization despite having a volume parameter 
    8279# This should perhaps be volume normalized? 
     
    9390oldname = 'HayterMSAStructure' 
    9491oldpars = dict() 
    95 demo = dict(effect_radius = 20.75,charge=19.0,volfraction = 0.0192,temperature=318.16,saltconc=0.0,dielectconst=71.08,effect_radius_pd = 0.1,effect_radius_pd_n = 40) 
     92demo = dict(effect_radius=20.75, charge=19.0, volfraction=0.0192, temperature=318.16, saltconc=0.0, dielectconst=71.08, effect_radius_pd=0.1, effect_radius_pd_n=40) 
    9693 
Note: See TracChangeset for help on using the changeset viewer.