Skip to content

custom models not appearing with structure factor button (Trac #664) #795

@pkienzle

Description

@pkienzle

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.

Migrated from http://trac.sasview.org/ticket/664

{
    "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"
}

Metadata

Metadata

Assignees

Labels

DefectBug or undesirable behaviourMinorSmall job

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions