Changeset 2f0c07d in sasmodels for sasmodels/generate.py


Ignore:
Timestamp:
Mar 16, 2016 3:07:15 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
a98958b
Message:

make figure names regular (geometry, angle_definition, angle_projection)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r91c5fdc r2f0c07d  
    672672    * *tests* is a set of tests that must pass 
    673673    * *source* is the list of library files to include in the C model build 
    674     * *Iq*, *Iqxy*, *form_volume*, *ER*, and *VR* are python functions 
     674    * *Iq*, *Iqxy*, *form_volume*, *ER*, *VR* and *sesans* are python functions 
    675675      implementing the kernel for the module, or None if they are not 
    676676      defined in python 
     
    682682      *model_info* blocks for the composition objects.  This allows us to 
    683683      build complete product and mixture models from just the info. 
     684 
    684685    """ 
    685686    # TODO: maybe turn model_info into a class ModelDefinition 
     
    710711        ) 
    711712    process_parameters(model_info) 
    712     # Fill in available functions 
    713     model_info.update((k, getattr(kernel_module, k, None)) 
    714                       for k in ('ER', 'VR', 'form_volume', 'Iq', 'Iqxy')) 
     713    # Check for optional functions 
     714    functions = "ER VR form_volume Iq Iqxy shape sesans".split() 
     715    model_info.update((k, getattr(kernel_module, k, None)) for k in functions) 
    715716    return model_info 
    716717 
Note: See TracChangeset for help on using the changeset viewer.