Skip to content

minor isue with simultaneous / constrained fits (Trac #1061) #1117

@RichardHeenan

Description

@RichardHeenan

Trying to break constrained simultaneous fit between 3 data sets (see attached project) with different models in current master for 4.2

Save project and load project worked fine, twice around, though each time the fit pages appeared in a different order the data and models still matched (hooray).

However, having hit "fit" from the constraints page, if I then hit "fit" on an individual fit page gets error message:

2018-01-15 13:04:33 : Traceback (most recent call last):
  File "C:\sasview42\sasview\src\sas\sasgui\perspectives\fitting\fit_thread.py", line 78, in compute
    result = map(map_apply, inputs)
  File "C:\sasview42\sasview\src\sas\sasgui\perspectives\fitting\fit_thread.py", line 14, in map_apply
    return apply(arguments![0], arguments[1:])
  File "C:\sasview42\sasview\src\sas\sasgui\perspectives\fitting\fit_thread.py", line 11, in map_getattr
    return  getattr(classInstance, classFunc)(*args)
  File "C:\sasview42\sasview\src\sas\sascalc\fit!BumpsFitting.py", line 279, in fit
    result = run_bumps(problem, handler, curr_thread)
  File "C:\sasview42\sasview\src\sas\sascalc\fit!BumpsFitting.py", line 379, in run_bumps
    'uncertainty': getattr(fitdriver.fitter, 'state', None),
!AttributeError: '!FitDriver' object has no attribute 'fitter'
 
 None

Turning off and back on any parameters with red NaN in their error bar fields (ie the parameters that were constrained), then hit "stop", gets the "fit" button back to normal and you can then do a fit on a single data set.

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

{
    "status": "new",
    "changetime": "2018-02-13T02:15:37",
    "_ts": "2018-02-13 02:15:37.040974+00:00",
    "description": "Trying to break constrained simultaneous fit between 3 data sets (see attached project) with different models in current master for 4.2\n\nSave project and load project worked fine, twice around, though each time the fit pages appeared in a different order the data and models still matched (hooray).\n\nHowever, having hit \"fit\" from the constraints page, if I then hit \"fit\" on an individual fit page gets error message:\n\n2018-01-15 13:04:33 : Traceback (most recent call last):\n\u00a0 File \"C:\\sasview42\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fit_thread.py\", line 78, in compute\n\u00a0\u00a0\u00a0 result = map(map_apply, inputs)\n\u00a0 File \"C:\\sasview42\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fit_thread.py\", line 14, in map_apply\n\u00a0\u00a0\u00a0 return apply(arguments![0], arguments[1:])\n\u00a0 File \"C:\\sasview42\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fit_thread.py\", line 11, in map_getattr\n\u00a0\u00a0\u00a0 return\u00a0 getattr(classInstance, classFunc)(*args)\n\u00a0 File \"C:\\sasview42\\sasview\\src\\sas\\sascalc\\fit\\!BumpsFitting.py\", line 279, in fit\n\u00a0\u00a0\u00a0 result = run_bumps(problem, handler, curr_thread)\n\u00a0 File \"C:\\sasview42\\sasview\\src\\sas\\sascalc\\fit\\!BumpsFitting.py\", line 379, in run_bumps\n\u00a0\u00a0\u00a0 'uncertainty': getattr(fitdriver.fitter, 'state', None),\n!AttributeError: '!FitDriver' object has no attribute 'fitter'\n\u00a0\n\u00a0None \n\nTurning off and back on any parameters with red NaN in their error bar fields (ie the parameters that were constrained), then hit \"stop\", gets the \"fit\" button back to normal and you can then do a fit on a single data set.",
    "reporter": "richardh",
    "cc": "",
    "resolution": "",
    "workpackage": "SasView Bug Fixing",
    "time": "2018-01-15T13:10:24",
    "component": "SasView",
    "summary": "minor isue with simultaneous / constrained fits",
    "priority": "minor",
    "keywords": "",
    "milestone": "SasView 4.3.0",
    "owner": "krzywon",
    "type": "defect"
}

Metadata

Metadata

Assignees

Labels

ContraintsIssues pertaining to constraintsDefectBug or undesirable behaviourMinorSmall job

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions