Opened 4 weeks ago

#1217 new defect

simplify models produced by Sum/Multiply

Reported by: pkienzle Owned by:
Priority: minor Milestone: SasView 4.3.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

The models produced by Sum/Multiply are a little more complicated than necessary. Only need to define:

from sasmodels.core import load_model_info
model_info = load_model_info('sphere+cylinder')
model_info.name = "MySumFunction"

instead of

from sasmodels.core import load_model_info
from sasmodels.sasview_model import make_model_from_info

model_info = load_model_info('sphere+cylinder')
model_info.name = 'MySumFunction'
Model = make_model_from_info(model_info)

Change History (0)

Note: See TracTickets for help on using tickets.