Permalink
Browse files

BUG: cast the status flag to int in optimize.cobyla

  • Loading branch information...
1 parent 49f1644 commit 941351de95611cf4c959f5c8239a299b15e5c54e @dlax dlax committed Oct 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scipy/optimize/cobyla.py
View
@@ -235,7 +235,7 @@ def calcfc(x, con):
dinfo=info)
return Result(x=xopt,
- status=info[0],
+ status=int(info[0]),
success=info[0]==1,
message={1: 'Optimization terminated successfully.',
2: 'Maximum number of function evaluations has '

0 comments on commit 941351d

Please sign in to comment.