Changeset b297ba9 in sasmodels for sasmodels/models/guinier.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/guinier.py

    rc9fc873 rb297ba9  
    3838 
    3939To specify a negative value of $R_g^2$ in SasView, simply give $R_g$ a negative 
    40 value ($R_g^2$ will be evaluated as $R_g |R_g|$). Note that the physical radius  
    41 of gyration, of the exterior of the particle, will still be large and positive.  
    42 It is only the apparent size from the small $Q$ data that will give a small or  
     40value ($R_g^2$ will be evaluated as $R_g |R_g|$). Note that the physical radius 
     41of gyration, of the exterior of the particle, will still be large and positive. 
     42It is only the apparent size from the small $Q$ data that will give a small or 
    4343negative value of $R_g^2$. 
    4444 
     
    7474 
    7575def random(): 
     76    """Return a random parameter set for the model.""" 
    7677    scale = 10**np.random.uniform(1, 4) 
    7778    # Note: compare.py has Rg cutoff of 1e-30 at q=1 for guinier, so use that 
     
    8990 
    9091# parameters for demo 
    91 demo = dict(scale=1.0,  background=0.001, rg=60.0 ) 
     92demo = dict(scale=1.0, background=0.001, rg=60.0) 
    9293 
    9394# parameters for unit tests 
Note: See TracChangeset for help on using the changeset viewer.