{"action":"opened","issue":{"url":"https://api.github.com/repos/lmfit/lmfit-py/issues/350","repository_url":"https://api.github.com/repos/lmfit/lmfit-py","labels_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/350/comments","events_url":"https://api.github.com/repos/lmfit/lmfit-py/issues/350/events","html_url":"https://github.com/lmfit/lmfit-py/issues/350","id":164836833,"number":350,"title":"warnings from emcee 2.4.1","user":{"login":"newville","id":304251,"avatar_url":"https://avatars.githubusercontent.com/u/304251?v=3","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-11T13:27:52Z","updated_at":"2016-07-11T13:27:52Z","closed_at":null,"body":"I get warnings from the nosetests with emcee 2.4.1:\r\n```\r\n......................................................S....S................................................................................../Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:278: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  self.dim))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:279: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  self._lnprob = np.zeros((self.ntemps, self.nwalkers, nsave))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:281: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  nsave))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:308: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  zs = np.exp(np.random.uniform(low=-np.log(self.a), high=np.log(self.a), size=(self.ntemps, self.nwalkers/2)))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:310: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  qs = np.zeros((self.ntemps, self.nwalkers/2, self.dim))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:313: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  size=self.nwalkers / 2)\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:315: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  (self.nwalkers / 2, 1)) * (pupdate[k, :, :] -\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:328: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  (self.ntemps, self.nwalkers/2))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:330: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  (self.ntemps, self.nwalkers/2))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:338: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  self.nwalkers/2)))\r\n/Users/Newville/anaconda/lib/python2.7/site-packages/emcee/ptsampler.py:350: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n  accepts = accepts.reshape((self.ntemps, self.nwalkers/2))\r\n..........capi_return is NULL\r\nCall-back cb_calcfc_in__cobyla__user__routines failed.\r\n\r\n```\r\n\r\nAnyone know why?\r\n\r\nPossibly related:  I can't run `examples\\lmfit_and_emcee.py`, it gives:\r\n\r\n```\r\npython  examples/lmfit_and_emcee.py \r\n[[Variables]]\r\n    a:    5          (init= 5)\r\n    b:   -5          (init=-5)\r\n    t1:   1          (init= 1)\r\n    t2:   15         (init= 15)\r\n[[Correlations]] (unreported correlations are <  0.100)\r\nTraceback (most recent call last):\r\n  File \"examples/lmfit_and_emcee.py\", line 99, in <module>\r\n    lnfunc, guess = create_all(mini)\r\n  File \"examples/lmfit_and_emcee.py\", line 66, in create_all\r\n    guess = starting_guess(mini, not sigma_given)\r\n  File \"examples/lmfit_and_emcee.py\", line 52, in starting_guess\r\n    vals.append(mini.residual.std())\r\nAttributeError: 'NoneType' object has no attribute 'std'\r\n```"}}
{"actor":{"display_login":"newville"}}