Changeset fc7aa39 in sasmodels for example


Ignore:
Timestamp:
Mar 20, 2016 4:52:40 AM (9 years ago)
Author:
smk78
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:
275b98e5, 74fd96f
Parents:
2f63032 (diff), fa902d4 (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

Location:
example
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • example/sesans_parameters_sphere.py

    r84db7a5 rfa902d4  
    1111# DO NOT MODIFY THIS LINE 
    1212model = sesansfit.get_bumps_model(model_name) 
     13model.radius.range(1,10000) 
    1314 
    1415# Enter any custom parameters 
  • example/sesansfit.py

    rd459d4e rfa902d4  
    4747 
    4848    data.has_no_finite_acceptance = acceptance_angle is not None 
    49     if "radius" in initial_vals: 
    50         radius = initial_vals.get("radius") 
    51     else: 
    52         radius = 1000 
     49    radius = initial_vals.get("radius", 1000) 
    5350    data.Rmax = 30*radius # [A] 
    5451 
     
    6259    for k, v in initial_vals.items(): 
    6360        param = model.parameters().get(k) 
    64         setattr(param, "value", v) 
     61        param.value = v 
    6562    for k, v in param_range.items(): 
    6663        param = model.parameters().get(k) 
    6764        if param is not None: 
    68             setattr(param.bounds, "limits", v) 
     65            param.range(*v) 
    6966 
    7067    if False: # for future implementation 
Note: See TracChangeset for help on using the changeset viewer.