Opened 6 years ago

Last modified 6 years ago

#1149 new enhancement

qt5 - Separate composition of mixture models in GUI

Reported by: tcbennun Owned by: tcbennun
Priority: critical Milestone: SasView 5.0.0
Component: SasView Keywords:
Cc: richardh, pkienzle Work Package: Beta Approximation Project

Description

ported from JIRA, SASVIEW-973:


Torin Cooper-Bennun, 26 July 2018 11:10

Mixture models (a.k.a. sum/multiply models, for current intents and purposes) separate parameters of their component models using prefixes (A_sld, B_sld, and so on).

We are on the way to using sub-headings in the parameters table instead (see SASVIEW-966 [and comments in trac, #475]). To implement this for mixture models, an intermediate layer (upon model loading) is needed to extract the parameters by component and display them without prefixes; then, when they are manipulated, translate from the non-prefixed version to the prefixed version, in order to interact with the model itself correctly.

The first step seems okay, since modelinfo, I think, contains the necessary information to get the name of the model component from the parameter's prefix.

The second step is a bit more involved. One possibility is to have each non-prefixed parameter in the Qt model be associated with a data item which contains the real parameter name. Whatever happens, various routines will need updating to deal with this case, because currently only the item's text is used to identify the parameter.

Attachments (1)

subheadings_volfraction.png (10.2 KB) - added by tcbennun 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by tcbennun

comment:1 Changed 6 years ago by tcbennun

In the ESS_GUI_beta_approx branch, product model parameters are all shown separated by constituent model:


comment:2 Changed 6 years ago by tcbennun

Product model params are now separated by P(Q), S(Q) by subheadings in ESS_GUI.

Doing the same for mixture models is a big task…

Note: See TracTickets for help on using tickets.