Changeset e1ea6b5 in sasmodels for sasmodels/conversion_table.py


Ignore:
Timestamp:
Dec 2, 2016 2:51:09 PM (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:
9eb5eca
Parents:
077666e
Message:

Streamlined code and have Unified Power Rg and Lamellar PC models loading properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/conversion_table.py

    r077666e re1ea6b5  
    88""" 
    99 
     10# TODO: May need to version this for future versions of sasview when 
     11# TODO: models are reparameterized 
    1012 
    1113CONVERSION_TABLE = { 
     
    825827    "unified_power_Rg": [ 
    826828        "UnifiedPowerRg", 
    827         { 
    828         } 
     829        dict(((field_new+str(index), field_old+str(index)) 
     830              for field_new, field_old in [("rg", "Rg"), 
     831                                           ("power", "power"), 
     832                                           ("G", "G"), 
     833                                           ("B", "B"),] 
     834              for index in range(11)), 
     835             **{ 
     836                   "background": "background", 
     837                   "scale": "scale", 
     838               }) 
    829839    ], 
    830840    "vesicle": [ 
Note: See TracChangeset for help on using the changeset viewer.