Changeset 8ccb9d4 in sasmodels


Ignore:
Timestamp:
Jan 24, 2017 11:10:29 AM (7 years ago)
Author:
krzywon
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
07c8d46
Parents:
119fa13
Message:

Once more, greab the entire dictionary to allow for varying sized dictionaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r119fa13 r8ccb9d4  
    9393 
    9494def _get_translation_table(model_info, version=(3,1,2)): 
    95     _, translation = CONVERSION_TABLE.get(version, {}).get(model_info.id, [None, {}]) 
    96     translation = translation.copy() 
     95    dict = CONVERSION_TABLE.get(version, {}).get(model_info.id, [None, {}]) 
     96    translation = dict[1].copy() 
    9797    for p in model_info.parameters.kernel_parameters: 
    9898        if p.length > 1: 
Note: See TracChangeset for help on using the changeset viewer.