Changeset b297ba9 in sasmodels for sasmodels/models/pearl_necklace.py


Ignore:
Timestamp:
Mar 20, 2019 7:03:50 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
4e28511
Parents:
0d362b7
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/pearl_necklace.py

    rcf3d0ce rb297ba9  
    5353R Schweins and K Huber, *Particle Scattering Factor of Pearl Necklace Chains*, 
    5454*Macromol. Symp.* 211 (2004) 25-42 2004 
    55 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949).  
     55L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 
    5656""" 
    5757 
    5858import numpy as np 
    59 from numpy import inf, pi 
     59from numpy import inf 
    6060 
    6161name = "pearl_necklace" 
     
    9696source = ["lib/sas_Si.c", "lib/sas_3j1x_x.c", "pearl_necklace.c"] 
    9797single = False  # use double precision unless told otherwise 
    98 effective_radius_type = [ 
    99     "equivalent volume sphere",  
    100     ] 
    101      
     98effective_radius_type = ["equivalent volume sphere"] 
     99 
    102100def random(): 
     101    """Return a random parameter set for the model.""" 
    103102    radius = 10**np.random.uniform(1, 3) # 1 - 1000 
    104103    thick_string = 10**np.random.uniform(0, np.log10(radius)-1) # 1 - radius/10 
     
    122121            thick_string_pd=0.2, thick_string_pd_n=5, 
    123122           ) 
    124 # ER function is not being used here, not that it is likely very sensible to  
    125 # include an S(Q) with this model, the default in sasview 5.0 would be to the  
     123# ER function is not being used here, not that it is likely very sensible to 
     124# include an S(Q) with this model, the default in sasview 5.0 would be to the 
    126125# "unconstrained" radius_effective. 
    127126#tests = [[{}, 0.001, 17380.245], [{}, 'ER', 115.39502]] 
Note: See TracChangeset for help on using the changeset viewer.