-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt5 gui - constraints not working? (Trac #1113) #1158
Comments
Trac update at
to:
Historically in sasview constraint are envisaged as linking fitting (not fixed) parameters between different fit pages, however saasview was changed some while ago so that the constraints tab will appear if there is only a single fit page. Constraints within one fit page are OK, BUT in sasview they are not applied inside polydispersity integration loops. Thus if a user set shell_thickness=0.2radius, where radius is polydisperse, then shell_thickness is constant at 0.2mean_radius. It would be good to warn users if they attempt this. Users that need constraints of this type are encouraged to generate their own plugin models. However now that all polydispersity integrations are removed from the models themselves, it might be possible for sasview to allow this at some future point (i.e. to apply relevant constraints when setting up the lists of coordinates & weights for the integrations). Historically, the only indication on a fit page that a parameter is constrained (without looking back at the constraints tab) is that the error box for that one says "nan". This is likely because users can hit "fit" on either an individual fit page for a fit to just that data set (when the parameter is not actually constrained but freely adjusting) or hit "fit" on the constraints tab for a fit to multiple data sets. It would be good to improve upon the clarity here, perhaps by changing the "nan" to "constrained" ?? |
Trac update at The ESS_GUI branch version does allow the Const. Simul. Fit tab to appear by navigating to Fitting -> Constrained or Simultaneous Fit in the menu bar. However, you cannot add constraints. It appears to be simply unimplemented currently. |
Trac update at I misunderstood the interface entirely. In order to create a constraint, you '''select two fit pages''' in the fit page table of the Constrained Fit tab, right-click, and in the resulting context menu click "Mutual constrain of parameters in selected models", which then brings up the constraint editor. Clearly this is unintuitive and we need another way of bringing up the constraint editor. There are a couple of bugs to fix too:
|
Trac update at See #1176 where some improvements to constraints in QT gui are being developed. Note that in QT unlike 4.2 constrained parameters do not have to be being fit, and they change to non-editable blue italics to indicate that they are constrained, though some testing of all of this is likely needed. [In particular what happens if you hit "fit" on an individual FitPage.] If a radius in S(Q) could also turn blue etc when constrained to an ER from P(Q) that would also be good! |
Trac update at
Closing; constraint improvements are covered in #1176.
|
Would be nice to see how constraints work in qt5, as we might need todo similar for some of the beta approximation ideas.
In Windows-
(a) downloadable qt5 install - constraints tab appears but cannot enter any constraints. But the download may be out of date?
(b) when build own version from ess_gui branch, the constraints tab does not appear.
Migrated from http://trac.sasview.org/ticket/1113
The text was updated successfully, but these errors were encountered: