Changeset 40a87fa in sasmodels for sasmodels/models/teubner_strey.py


Ignore:
Timestamp:
Aug 8, 2016 9:24:11 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/teubner_strey.py

    r2c74c11 r40a87fa  
    4747 
    4848import numpy as np 
    49 from numpy import inf, sqrt 
     49from numpy import inf 
    5050 
    5151name = "teubner_strey" 
     
    5858category = "shape-independent" 
    5959 
    60 #             ["name", "units", default, [lower, upper], "type","description"], 
    61 parameters = [["a2", "", 0.1, [0, inf], "", 
    62                "a2"], 
    63               ["c1", "1e-6/Ang^2", -30., [-inf, 0], "", 
    64                "c1"], 
    65               ["c2", "Ang", 5000., [0, inf], "volume", 
    66                "c2"], 
    67              ] 
    68  
     60#   ["name", "units", default, [lower, upper], "type","description"], 
     61parameters = [ 
     62    ["a2", "", 0.1, [0, inf], "", "a2"], 
     63    ["c1", "1e-6/Ang^2", -30., [-inf, 0], "", "c1"], 
     64    ["c2", "Ang", 5000., [0, inf], "volume", "c2"], 
     65    ] 
    6966 
    7067def Iq(q, a2, c1, c2): 
     68    """SAS form""" 
    7169    return 1. / np.polyval([c2, c1, a2], q**2) 
    7270Iq.vectorized = True  # Iq accepts an array of q values 
Note: See TracChangeset for help on using the changeset viewer.