You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom models are not identified as form factor models even though they define the ER function. This means that the Structure Factor button is not appearing on the fit page.
To reproduce, create a custom model !MyFunction such as:
a=1
b=0
return a*x + b
Select Custom Model then select !MyFunction. No Structure Factor button appears.
Note: maybe use "form_factor=True" im models to identify form factors rather than the presence of the ER function. Or maybe use the presence of volume parameters.
{
"status": "closed",
"changetime": "2016-10-08T17:44:40",
"_ts": "2016-10-08 17:44:40.016127+00:00",
"description": "Custom models are not identified as form factor models even though they define the ER function. This means that the Structure Factor button is not appearing on the fit page.\n\nTo reproduce, create a custom model !MyFunction such as:\n{{{\n a=1\n b=0\n\n return a*x + b\n}}}\nSelect Custom Model then select !MyFunction. No Structure Factor button appears.\n\nNote: maybe use \"form_factor=True\" im models to identify form factors rather than the presence of the ER function. Or maybe use the presence of volume parameters.\n",
"reporter": "pkienzle",
"cc": "",
"resolution": "fixed",
"workpackage": "SasView Bug Fixing",
"time": "2016-09-21T14:15:04",
"component": "SasView",
"summary": "custom models not appearing with structure factor button",
"priority": "minor",
"keywords": "",
"milestone": "SasView 4.1.0",
"owner": "mathieu",
"type": "defect"
}
The text was updated successfully, but these errors were encountered:
Trac update at 2016/10/03 22:14:54: pkienzle commented:
Two steps:
(1) model types need to be identified when plugin directory is first scanned, and when plugins are edited.
Identification appears to happen in sasview/src/sas/sasgui/perspectives/fitting/models.py:_getModelList, but only for standard models, not for plugin models.
Presumably this is only called at startup, not whenever the models are edited.
(2) GUI needs to be updated so that the relevant models are in the proper combo boxes.
On model save, need to tell fitting/basepage.py to update the model lists, clear all existing combo boxes and put in the new lists.
Custom models are not identified as form factor models even though they define the ER function. This means that the Structure Factor button is not appearing on the fit page.
To reproduce, create a custom model !MyFunction such as:
Select Custom Model then select !MyFunction. No Structure Factor button appears.
Note: maybe use "form_factor=True" im models to identify form factors rather than the presence of the ER function. Or maybe use the presence of volume parameters.
Migrated from http://trac.sasview.org/ticket/664
The text was updated successfully, but these errors were encountered: