Changeset f3bd37f in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Jul 17, 2016 2:36:34 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:
46ed760
Parents:
b9c12fe5
Message:

fix compare_many

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rdef2c1b rf3bd37f  
    257257    Randomize a single parameter. 
    258258    """ 
    259     if any(p.endswith(s) for s in ('_pd_n', '_pd_nsigma', '_pd_type')): 
     259    if any(p.endswith(s) for s in ('_pd', '_pd_n', '_pd_nsigma', '_pd_type')): 
    260260        return v 
    261261 
     
    405405            raise ValueError("sasview mixture models not supported by compare") 
    406406    else: 
    407         model = get_model(revert_name(model_info)) 
     407        old_name = revert_name(model_info) 
     408        if old_name is None: 
     409            raise ValueError("model %r does not exist in old sasview" 
     410                            % model_info.id) 
     411        model = get_model(old_name) 
    408412 
    409413    # build a smearer with which to call the model, if necessary 
Note: See TracChangeset for help on using the changeset viewer.