{"action":"created","issue":{"url":"https://api.github.com/repos/lmfit/lmfit-py/issues/483","repository_url":"https://api.github.com/repos/lmfit/lmfit-py","labels_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/483/comments","events_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/483/events","html_url":"https://github.com/lmfit/lmfit-py/issues/483","id":333600022,"node_id":"MDU6SXNzdWUzMzM2MDAwMjI=","number":483,"title":"Python crash when fixing the parameter to itself.","user":{"login":"vkoroteev","id":7648791,"node_id":"MDQ6VXNlcjc2NDg3OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7648791?v=4","gravatar_id":"","url":"https://api.github.com/users/vkoroteev","html_url":"https://github.com/vkoroteev","followers_url":"https://api.github.com/users/vkoroteev/followers","following_url":"https://api.github.com/users/vkoroteev/following{/other_user}","gists_url":"https://api.github.com/users/vkoroteev/gists{/gist_id}","starred_url":"https://api.github.com/users/vkoroteev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkoroteev/subscriptions","organizations_url":"https://api.github.com/users/vkoroteev/orgs","repos_url":"https://api.github.com/users/vkoroteev/repos","events_url":"https://api.github.com/users/vkoroteev/events{/privacy}","received_events_url":"https://api.github.com/users/vkoroteev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-19T09:55:17Z","updated_at":"2018-06-20T18:12:52Z","closed_at":null,"author_association":"NONE","body":"Python crashes when you accidentally set fit parameter expression to the name of the parameter.\r\n\r\n###### Version information\r\nPython: 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]\r\nlmfit: 0.9.10, scipy: 1.1.0, numpy: 1.14.2, asteval: 0.9.12, uncertainties: 3.0.2, six: 1.11.0\r\n\r\n###### A Minimal, Complete, and Verifiable example\r\nfrom lmfit.models import LinearModel\r\nx = [x for x in range(10)]\r\ny = [e*10 for e in x]\r\nmod = LinearModel()\r\nmod.set_param_hint('slope', expr = 'slope')\r\nout = mod.fit(y, x=x)\r\n\r\nI have python crash on the last line."},"comment":{"url":"https://api.github.com/repos/lmfit/lmfit-py/issues/comments/398845849","html_url":"https://github.com/lmfit/lmfit-py/issues/483#issuecomment-398845849","issue_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/483","id":398845849,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODg0NTg0OQ==","user":{"login":"newville","id":304251,"node_id":"MDQ6VXNlcjMwNDI1MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/304251?v=4","gravatar_id":"","url":"https://api.github.com/users/newville","html_url":"https://github.com/newville","followers_url":"https://api.github.com/users/newville/followers","following_url":"https://api.github.com/users/newville/following{/other_user}","gists_url":"https://api.github.com/users/newville/gists{/gist_id}","starred_url":"https://api.github.com/users/newville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newville/subscriptions","organizations_url":"https://api.github.com/users/newville/orgs","repos_url":"https://api.github.com/users/newville/repos","events_url":"https://api.github.com/users/newville/events{/privacy}","received_events_url":"https://api.github.com/users/newville/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T18:12:52Z","updated_at":"2018-06-20T18:12:52Z","author_association":"MEMBER","body":"@vkoroteev As I suspected, I don't get a crash on 64 bit Windows either, using the same Anaconda Python version (3.6.5) as you.  I get a RecursionError on all systems I tried.\r\n\r\nIn short, I cannot reproduce the problem reported and am skeptical that we will have uncovered a bug in Python which causes crashes where one would expect a RecursionError or some other runtime exception.\r\n\r\n\r\n "}}
{"actor":{"display_login":"newville"}}