- Timestamp:
- Mar 18, 2016 4:58:55 AM (9 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesansfit.py
r84db7a5 r4554131 1 1 from bumps.names import * 2 from sas modelsimport core, bumps_model, sesans2 from sas import core, bumps_model, sesans 3 3 4 4 HAS_CONVERTER = True … … 8 8 HAS_CONVERTER = False 9 9 10 10 11 def get_bumps_model(model_name): 11 12 kernel = core.load_model(model_name) … … 13 14 return model 14 15 15 def sesans_fit(file, model , initial_vals={}, custom_params={}, param_range=[]):16 def sesans_fit(file, model_name, initial_vals={}, custom_params={}, param_range=[], acceptance_angle=None): 16 17 """ 18 17 19 @param file: SESANS file location 18 20 @param model: Bumps model object or model name - can be model, model_1 * model_2, and/or model_1 + model_2 … … 55 57 dy = err_data 56 58 sample = Sample() 59 acceptance_angle = acceptance_angle 60 needs_all_q = acceptance_angle is not None 57 61 data = SESANSData1D() 58 62
Note: See TracChangeset
for help on using the changeset viewer.