Changeset 3eb6b90 in sasmodels


Ignore:
Timestamp:
Feb 18, 2016 1:16:50 PM (9 years ago)
Author:
mathieu
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:
94bd809
Parents:
04b0b30
Message:

Fix pylint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lamellarFFHG.py

    r7f47777 r3eb6b90  
    6868category = "shape:lamellae" 
    6969 
     70# pylint: disable=bad-whitespace, line-too-long 
    7071#             ["name", "units", default, [lower, upper], "type","description"], 
    71 parameters = [["tail_length", "Ang",  15, [0, inf], "volume", 
    72                "Tail thickness"], 
    73               ["head_length", "Ang",  10, [0, inf], "volume", 
    74                "head thickness"], 
    75               ["sld", "1e-6/Ang^2", 0.4, [-inf,inf], "", 
    76                "Tail scattering length density"], 
    77               ["head_sld", "1e-6/Ang^2", 3.0, [-inf,inf], "", 
    78                "Head scattering length density"], 
    79               ["solvent_sld", "1e-6/Ang^2", 6, [-inf,inf], "", 
    80                "Solvent scattering length density"], 
    81              ] 
     72parameters = [["tail_length", "Ang",       15,   [0, inf],  "volume",  "Tail thickness"], 
     73              ["head_length", "Ang",       10,   [0, inf],  "volume",  "head thickness"], 
     74              ["sld",         "1e-6/Ang^2", 0.4, [-inf,inf], "",       "Tail scattering length density"], 
     75              ["head_sld",    "1e-6/Ang^2", 3.0, [-inf,inf], "",       "Head scattering length density"], 
     76              ["solvent_sld", "1e-6/Ang^2", 6,   [-inf,inf], "",       "Solvent scattering length density"]] 
     77# pylint: enable=bad-whitespace, line-too-long 
    8278 
    8379# No volume normalization despite having a volume parameter 
     
    113109 
    114110demo = dict(scale=1, background=0, 
    115             tail_length=15,head_length=10, 
     111            tail_length=15, head_length=10, 
    116112            sld=0.4, head_sld=3.0, solvent_sld=6.0, 
    117             tail_length_pd= 0.2, tail_length_pd_n=40, 
    118             head_length_pd= 0.01, head_length_pd_n=40) 
     113            tail_length_pd=0.2, tail_length_pd_n=40, 
     114            head_length_pd=0.01, head_length_pd_n=40) 
    119115 
    120116oldname = 'LamellarFFHGModel' 
     
    122118               sld='sld_tail', head_sld='sld_head', solvent_sld='sld_solvent') 
    123119# 
    124 tests = [ 
    125         [ {'scale': 1.0, 'background' : 0.0, 'tail_length' : 15.0, 'head_length' : 10.0,'sld' : 0.4, 
    126          'head_sld' : 3.0, 'solvent_sld' : 6.0, }, [0.001], [653143.9209]] 
    127         ] 
    128  
    129  
     120tests = [[{'scale': 1.0, 'background': 0.0, 'tail_length': 15.0, 'head_length': 10.0, 
     121           'sld': 0.4, 'head_sld': 3.0, 'solvent_sld': 6.0}, [0.001], [653143.9209]]] 
Note: See TracChangeset for help on using the changeset viewer.