Changeset ea05c87 in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Apr 4, 2016 4:47:27 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:
1e2a1ba
Parents:
9d96649 (diff), ec45c4f (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 remote-tracking branch 'origin/master' into polydisp

Conflicts:

sasmodels/models/spherical_sld.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    raaf75b6 rea05c87  
    4141from .data import plot_theory, empty_data1D, empty_data2D 
    4242from .direct_model import DirectModel 
    43 from .convert import revert_pars, constrain_new_to_old 
     43from .convert import revert_name, revert_pars, constrain_new_to_old 
    4444 
    4545USAGE = """ 
     
    341341def eval_sasview(model_info, data): 
    342342    """ 
    343     Return a model calculator using the SasView fitting engine. 
     343    Return a model calculator using the pre-4.0 SasView models. 
    344344    """ 
    345345    # importing sas here so that the error message will be that sas failed to 
     
    360360        composition_type, parts = model_info['composition'] 
    361361        if composition_type == 'product': 
    362             from sas.sascalc.fit.MultiplicationModel import MultiplicationModel 
    363             P, S = [get_model(p) for p in model_info['oldname']] 
     362            from sas.models.MultiplicationModel import MultiplicationModel 
     363            P, S = [get_model(revert_name(p)) for p in parts] 
    364364            model = MultiplicationModel(P, S) 
    365365        else: 
    366366            raise ValueError("sasview mixture models not supported by compare") 
    367367    else: 
    368         model = get_model(model_info['oldname']) 
     368        model = get_model(revert_name(model_info)) 
    369369 
    370370    # build a smearer with which to call the model, if necessary 
Note: See TracChangeset for help on using the changeset viewer.