Changeset a792234 in sasmodels for example


Ignore:
Timestamp:
Mar 18, 2016 4:58:55 AM (9 years ago)
Author:
gonzalezm
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:
5bb9c79
Parents:
2622b3f (diff), 4554131 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://github.com/SasView/sasmodels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • example/sesansfit.py

    r84db7a5 r4554131  
    11from bumps.names import * 
    2 from sasmodels import core, bumps_model, sesans 
     2from sas import core, bumps_model, sesans 
    33 
    44HAS_CONVERTER = True 
     
    88    HAS_CONVERTER = False 
    99 
     10 
    1011def get_bumps_model(model_name): 
    1112    kernel = core.load_model(model_name) 
     
    1314    return model 
    1415 
    15 def sesans_fit(file, model, initial_vals={}, custom_params={}, param_range=[]): 
     16def sesans_fit(file, model_name, initial_vals={}, custom_params={}, param_range=[], acceptance_angle=None): 
    1617    """ 
     18 
    1719    @param file: SESANS file location 
    1820    @param model: Bumps model object or model name - can be model, model_1 * model_2, and/or model_1 + model_2 
     
    5557            dy = err_data 
    5658            sample = Sample() 
     59            acceptance_angle = acceptance_angle 
     60            needs_all_q = acceptance_angle is not None 
    5761        data = SESANSData1D() 
    5862 
Note: See TracChangeset for help on using the changeset viewer.