Skip to content
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

Load project issues (Trac #738) #854

Closed
RichardHeenan opened this issue Mar 30, 2019 · 5 comments
Closed

Load project issues (Trac #738) #854

RichardHeenan opened this issue Mar 30, 2019 · 5 comments
Assignees
Labels
Blocker Prevents a different issue from being resolved Defect Bug or undesirable behaviour
Milestone

Comments

@RichardHeenan
Copy link
Contributor

RichardHeenan commented Mar 30, 2019

Loading a project gives "access violations" on at least some models.

Loading a project with constraints between two fit pages looks like it loads OK (apart from 5 or 6 access violations) but hitting "fit" in the constraints tab goes into an infinite calculation, with

2016-10-08 14:40:11 : Fitting is in progress...

or "fit" on an individual fit page gives errors below and then removes the fit button

2016-10-08 14:40:11 : Traceback (most recent call last):
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\fit_thread.py", line 82, in compute
result = map(map_apply, inputs)
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\fit_thread.py", line 14, in map_apply
return apply(arguments[0], arguments[1:])
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\fit_thread.py", line 11, in map_getattr
return getattr(classInstance, classFunc)(args)
File "C:\stfc\sasview4\sasview\src\sas\sascalc\fit\BumpsFitting.py", line 274, in fit
result = run_bumps(problem, handler, curr_thread)
File "C:\stfc\sasview4\sasview\src\sas\sascalc\fit\BumpsFitting.py", line 345, in run_bumps
best, fbest = fitdriver.fit()
File "C:\Anaconda\lib\site-packages\bumps-0.7.5.7-py2.7.egg\bumps\fitters.py", line 830, in fit
**self.options)
File "C:\Anaconda\lib\site-packages\bumps-0.7.5.7-py2.7.egg\bumps\fitters.py", line 526, in solve
full_output=1)
File "C:\Anaconda\lib\site-packages\scipy\optimize\minpack.py", line 371, in leastsq
shape, dtype = _check_func('leastsq', 'func', func, x0, args, n)
File "C:\Anaconda\lib\site-packages\scipy\optimize\minpack.py", line 20, in _check_func
res = atleast_1d(thefunc(
((x0[:numinputs],) + args)))
File "C:\Anaconda\lib\site-packages\bumps-0.7.5.7-py2.7.egg\bumps\fitters.py", line 554, in _bounded_residuals
self.problem.setp(p + stray)
File "C:\Anaconda\lib\site-packages\bumps-0.7.5.7-py2.7.egg\bumps\fitproblem.py", line 270, in setp
setp_hook()
File "C:\stfc\sasview4\sasview\src\sas\sascalc\fit\BumpsFitting.py", line 230, in call
self.update()
File "", line 6, in eval_expressions
NameError: global name 'M1' is not defined

None''

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

{
    "status": "closed",
    "changetime": "2016-10-20T20:18:07",
    "_ts": "2016-10-20 20:18:07.256128+00:00",
    "description": "Loading a project gives \"access violations\" on at least some models.\n\nLoading a project with constraints between two fit pages looks like it loads OK (apart from 5 or 6 access violations) but hitting \"fit\" in the constraints tab goes into an infinite calculation, with \n\n\t2016-10-08 14:40:11 : Fitting is in progress...\n\nor \"fit\" on an individual fit page gives errors below and then removes the fit button\n\n\n2016-10-08 14:40:11 : Traceback (most recent call last):\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fit_thread.py\", line 82, in compute\n    result = map(map_apply, inputs)\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fit_thread.py\", line 14, in map_apply\n    return apply(arguments[0], arguments[1:])\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fit_thread.py\", line 11, in map_getattr\n    return  getattr(classInstance, classFunc)(*args)\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sascalc\\fit\\BumpsFitting.py\", line 274, in fit\n    result = run_bumps(problem, handler, curr_thread)\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sascalc\\fit\\BumpsFitting.py\", line 345, in run_bumps\n    best, fbest = fitdriver.fit()\n  File \"C:\\Anaconda\\lib\\site-packages\\bumps-0.7.5.7-py2.7.egg\\bumps\\fitters.py\", line 830, in fit\n    **self.options)\n  File \"C:\\Anaconda\\lib\\site-packages\\bumps-0.7.5.7-py2.7.egg\\bumps\\fitters.py\", line 526, in solve\n    full_output=1)\n  File \"C:\\Anaconda\\lib\\site-packages\\scipy\\optimize\\minpack.py\", line 371, in leastsq\n    shape, dtype = _check_func('leastsq', 'func', func, x0, args, n)\n  File \"C:\\Anaconda\\lib\\site-packages\\scipy\\optimize\\minpack.py\", line 20, in _check_func\n    res = atleast_1d(thefunc(*((x0[:numinputs],) + args)))\n  File \"C:\\Anaconda\\lib\\site-packages\\bumps-0.7.5.7-py2.7.egg\\bumps\\fitters.py\", line 554, in _bounded_residuals\n    self.problem.setp(p + stray)\n  File \"C:\\Anaconda\\lib\\site-packages\\bumps-0.7.5.7-py2.7.egg\\bumps\\fitproblem.py\", line 270, in setp\n    setp_hook()\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sascalc\\fit\\BumpsFitting.py\", line 230, in __call__\n    self.update()\n  File \"<string>\", line 6, in eval_expressions\nNameError: global name 'M1' is not defined\n \n None'' \n\n\n\n",
    "reporter": "richardh",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasView Bug Fixing",
    "time": "2016-10-08T18:51:47",
    "component": "SasView",
    "summary": "Load project issues",
    "priority": "blocker",
    "keywords": "",
    "milestone": "SasView 4.1.0",
    "owner": "krzywon",
    "type": "defect"
}
@RichardHeenan RichardHeenan added this to the SasView 4.1.0 milestone Mar 30, 2019
@RichardHeenan RichardHeenan added Blocker Prevents a different issue from being resolved Defect Bug or undesirable behaviour Incomplete Migration and removed Incomplete Migration labels Mar 30, 2019
@sasview-bot
Copy link

Trac update at 2016/10/08 19:45:52:

  • krzywon changed resolution from "" to "duplicate"
  • krzywon changed status from "new" to "closed"

@sasview-bot
Copy link

Trac update at 2016/10/10 22:20:47: krzywon commented:

In changeset a28e52b:

#!CommitTicketReference repository="sasview" revision="a28e52b9c410d3decbcb38b19f8d0a07d656514a"
#854: Simultaneous fit page now can perform fits on loading saved projects. Loading errors left to fix.

@sasview-bot
Copy link

Trac update at 2016/10/10 22:21:57:

  • krzywon changed resolution from "duplicate" to ""
  • krzywon changed status from "closed" to "reopened"

@sasview-bot
Copy link

Trac update at 2016/10/11 15:15:59: krzywon changed priority from "critical" to "blocker"

@sasview-bot
Copy link

Trac update at 2016/10/20 20:18:07:

  • krzywon commented:

In changeset c8e1996:

#!CommitTicketReference repository="sasview" revision="c8e19964f2dda929ccae8237e7b140a906cdf134"
Fixes #854: No errors are thrown on loading projects with fits, plus linting.
  • krzywon changed resolution from "" to "fixed"
  • krzywon changed status from "reopened" to "closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker Prevents a different issue from being resolved Defect Bug or undesirable behaviour
Projects
None yet
Development

No branches or pull requests

3 participants