Changeset 31eea1f in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Oct 22, 2017 5:00:50 PM (6 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:
f728001
Parents:
2bccb5a
Message:

explore accuracy of different 1D integration schemes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    re3571cb r31eea1f  
    11961196        elif arg.startswith('-accuracy='): opts['accuracy'] = arg[10:] 
    11971197        elif arg.startswith('-cutoff='):   opts['cutoff'] = arg[8:] 
    1198         elif arg.startswith('-random='):   opts['seed'] = int(arg[8:]) 
    11991198        elif arg.startswith('-title='):    opts['title'] = arg[7:] 
    12001199        elif arg.startswith('-data='):     opts['datafile'] = arg[6:] 
    12011200        elif arg.startswith('-engine='):   opts['engine'] = arg[8:] 
    12021201        elif arg.startswith('-neval='):    opts['count'] = arg[7:] 
     1202        elif arg.startswith('-random='): 
     1203            opts['seed'] = int(arg[8:]) 
     1204            opts['sets'] = 0 
     1205        elif arg == '-random': 
     1206            opts['seed'] = np.random.randint(1000000) 
     1207            opts['sets'] = 0 
    12031208        elif arg.startswith('-sphere'): 
    12041209            opts['sphere'] = int(arg[8:]) if len(arg) > 7 else 150 
    12051210            opts['is2d'] = True 
    1206         elif arg == '-random':  opts['seed'] = np.random.randint(1000000) 
    12071211        elif arg == '-preset':  opts['seed'] = -1 
    12081212        elif arg == '-mono':    opts['mono'] = True 
     
    13091313    # Set the integration parameters to the half sphere 
    13101314    opts['values'].extend([ 
    1311         'theta=90', 
     1315        #'theta=90', 
    13121316        'theta_pd=%g'%(90/np.sqrt(3)), 
    13131317        'theta_pd_n=%d'%steps, 
    13141318        'theta_pd_type=rectangle', 
    1315         'phi=0', 
     1319        #'phi=0', 
    13161320        'phi_pd=%g'%(180/np.sqrt(3)), 
    13171321        'phi_pd_n=%d'%(2*steps), 
     
    13201324    ]) 
    13211325    if 'psi' in opts['info'][0].parameters: 
    1322         opts['values'].append('psi=0') 
     1326        #opts['values'].append('psi=0') 
     1327        pass 
    13231328 
    13241329def parse_pars(opts, maxdim=np.inf): 
Note: See TracChangeset for help on using the changeset viewer.