Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/spherical_sld.py

    r5601947 ree60aa7  
    2222 
    2323    0: erf($\nu z$) 
    24      
     24 
    2525    1: Rpow($z^\nu$) 
    26      
     26 
    2727    2: Lpow($z^\nu$) 
    28      
     28 
    2929    3: Rexp($-\nu z$) 
    30      
     30 
    3131    4: Lexp($-\nu z$) 
    3232 
     
    217217              ["interface[n_shells]",  "Ang",        50.0,   [0, inf],       "volume", "thickness of the interface"], 
    218218              ["shape[n_shells]",      "",           0,      [SHAPES],       "", "interface shape"], 
    219               ["nu[n_shells]",         "",           2.5,    [0, inf],       "", "interface shape exponent"], 
     219              ["nu[n_shells]",         "",           2.5,    [1, inf],       "", "interface shape exponent"], 
    220220              ["n_steps",              "",           35,     [0, inf],       "", "number of steps in each interface (must be an odd integer)"], 
    221221             ] 
     
    223223source = ["lib/polevl.c", "lib/sas_erf.c", "lib/sas_3j1x_x.c", "spherical_sld.c"] 
    224224single = False  # TODO: fix low q behaviour 
     225have_Fq = True 
     226effective_radius_type = ["outer radius"] 
    225227 
    226228profile_axes = ['Radius (A)', 'SLD (1e-6/A^2)'] 
     
    268270 
    269271 
    270 def ER(n_shells, thickness, interface): 
    271     """Effective radius""" 
    272     n_shells = int(n_shells + 0.5) 
    273     total = (np.sum(thickness[:n_shells], axis=1) 
    274              + np.sum(interface[:n_shells], axis=1)) 
    275     return total 
    276  
    277  
    278272demo = { 
    279273    "n_shells": 5, 
Note: See TracChangeset for help on using the changeset viewer.