Changeset 8698a0d in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Oct 17, 2017 9:53:01 PM (7 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:
32f87a5
Parents:
becded3
git-author:
Paul Kienzle <pkienzle@…> (10/17/17 16:23:09)
git-committer:
Paul Kienzle <pkienzle@…> (10/17/17 21:53:01)
Message:

revise api for oriented shapes, allowing jitter in the frame of the sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rb76191e r8698a0d  
    9191 
    9292    === precision options === 
    93     -calc=default uses the default calcution precision 
     93    -engine=default uses the default calcution precision 
    9494    -single/-double/-half/-fast sets an OpenCL calculation engine 
    9595    -single!/-double!/-quad! sets an OpenMP calculation engine 
     
    110110vary from 64-bit to 128-bit, with 80-bit floats being common (1e-19 precision). 
    111111On unix and mac you may need single quotes around the DLL computation 
    112 engines, such as -calc='single!,double!' since !, is treated as a history 
     112engines, such as -engine='single!,double!' since !, is treated as a history 
    113113expansion request in the shell. 
    114114 
     
    122122 
    123123    # compare single and double precision calculation for a barbell 
    124     sascomp barbell -calc=single,double 
     124    sascomp barbell -engine=single,double 
    125125 
    126126    # generate 10 random lorentz models, with seed=27 
     
    131131 
    132132    # model timing test requires multiple evals to perform the estimate 
    133     sascomp pringle -calc=single,double -timing=100,100 -noplot 
     133    sascomp pringle -engine=single,double -timing=100,100 -noplot 
    134134""" 
    135135 
     
    10171017 
    10181018    # Precision options 
    1019     'calc=', 
     1019    'engine=', 
    10201020    'half', 'fast', 'single', 'double', 'single!', 'double!', 'quad!', 
    10211021    'sasview',  # TODO: remove sasview 3.x support 
     
    11671167        elif arg.startswith('-title='):    opts['title'] = arg[7:] 
    11681168        elif arg.startswith('-data='):     opts['datafile'] = arg[6:] 
    1169         elif arg.startswith('-calc='):     opts['engine'] = arg[6:] 
     1169        elif arg.startswith('-engine='):   opts['engine'] = arg[8:] 
    11701170        elif arg.startswith('-neval='):    opts['evals'] = arg[7:] 
    11711171        elif arg == '-random':  opts['seed'] = np.random.randint(1000000) 
Note: See TracChangeset for help on using the changeset viewer.