Changeset d9ec8f9 in sasmodels


Ignore:
Timestamp:
Aug 7, 2017 4:56:57 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c95d9255
Parents:
92708d8
Message:

elliptical cylinder axis ratio is 1 or greater

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r4553dae rd9ec8f9  
    7979    === model parameters === 
    8080    -preset*/-random[=seed] preset or random parameters 
    81     -sets=n generates n random datasets, with the seed given by -random=seed 
     81    -sets=n generates n random datasets with the seed given by -random=seed 
    8282    -pars/-nopars* prints the parameter set or not 
    8383    -default/-demo* use demo vs default parameters 
     
    11401140        'title'     : None, 
    11411141        'datafile'  : None, 
    1142         'sets'      : 1, 
     1142        'sets'      : 0, 
    11431143        'engine'    : 'default', 
    11441144        'evals'     : '1', 
     
    11991199        opts['is2d'] = True 
    12001200 
    1201     # Force random if more than one set 
    1202     if opts['sets'] > 1 and opts['seed'] < 0: 
     1201    # Force random if sets is used 
     1202    if opts['sets'] >= 1 and opts['seed'] < 0: 
    12031203        opts['seed'] = np.random.randint(1000000) 
     1204    if opts['sets'] == 0: 
     1205        opts['sets'] = 1 
    12041206 
    12051207    # Create the computational engines 
  • sasmodels/models/elliptical_cylinder.py

    r8c89d06 rd9ec8f9  
    162162    V = 10**np.random.uniform(3, 9) 
    163163    length = 10**np.random.uniform(1, 3) 
    164     axis_ratio = 10**np.random.uniform(-2, 2) 
     164    axis_ratio = 10**np.random.uniform(0, 2) 
    165165    radius_minor = np.sqrt(V/length/axis_ratio) 
    166166    Vf = 10**np.random.uniform(-4, -2) 
Note: See TracChangeset for help on using the changeset viewer.