Changeset 3271e20 in sasmodels


Ignore:
Timestamp:
Feb 18, 2015 11:08:57 AM (10 years ago)
Author:
ajj
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:
6a729a2
Parents:
87fce00
Message:

adding parameters to models for SasView? compatibility

Location:
sasmodels
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    ra503bfd r3271e20  
    722722        parameters = COMMON_PARAMETERS + kernel_module.parameters, 
    723723        source = getattr(kernel_module, 'source', []), 
     724        oldname = kernel_module.oldname, 
     725        oldpars = kernel_module.oldpars, 
    724726        ) 
    725727    # Fill in attributes which default to None 
  • sasmodels/sasview_model.py

    r250fa25 r3271e20  
    4242        SasviewModel.__init__(self, model) 
    4343    attrs = dict(__init__=__init__) 
    44     ConstructedModel = type(model.info['name'],  (SasviewModel,), attrs) 
     44    ConstructedModel = type(model.info['oldname'],  (SasviewModel,), attrs) 
    4545    return ConstructedModel 
    4646 
     
    5454 
    5555        self.name = model.info['name'] 
     56        self.oldname = model.info['oldname'] 
    5657        self.description = model.info['description'] 
    5758        self.category = None 
Note: See TracChangeset for help on using the changeset viewer.