{"action":"created","issue":{"url":"https://api.github.com/repos/pysal/pysal/issues/587","repository_url":"https://api.github.com/repos/pysal/pysal","labels_url":"https://api.github.com/repos/pysal/pysal/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/pysal/pysal/issues/587/comments","events_url":"https://api.github.com/repos/pysal/pysal/issues/587/events","html_url":"https://github.com/pysal/pysal/issues/587","id":60239668,"number":587,"title":"ML Lag","user":{"login":"ratishm1","id":7434387,"avatar_url":"https://avatars.githubusercontent.com/u/7434387?v=3","gravatar_id":"","url":"https://api.github.com/users/ratishm1","html_url":"https://github.com/ratishm1","followers_url":"https://api.github.com/users/ratishm1/followers","following_url":"https://api.github.com/users/ratishm1/following{/other_user}","gists_url":"https://api.github.com/users/ratishm1/gists{/gist_id}","starred_url":"https://api.github.com/users/ratishm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratishm1/subscriptions","organizations_url":"https://api.github.com/users/ratishm1/orgs","repos_url":"https://api.github.com/users/ratishm1/repos","events_url":"https://api.github.com/users/ratishm1/events{/privacy}","received_events_url":"https://api.github.com/users/ratishm1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pysal/pysal/labels/spreg","name":"spreg","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pysal/pysal/milestones/4","html_url":"https://github.com/pysal/pysal/milestones/Wishlist","labels_url":"https://api.github.com/repos/pysal/pysal/milestones/4/labels","id":368091,"number":4,"title":"Wishlist","description":null,"creator":{"login":"sjsrey","id":118042,"avatar_url":"https://avatars.githubusercontent.com/u/118042?v=3","gravatar_id":"","url":"https://api.github.com/users/sjsrey","html_url":"https://github.com/sjsrey","followers_url":"https://api.github.com/users/sjsrey/followers","following_url":"https://api.github.com/users/sjsrey/following{/other_user}","gists_url":"https://api.github.com/users/sjsrey/gists{/gist_id}","starred_url":"https://api.github.com/users/sjsrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjsrey/subscriptions","organizations_url":"https://api.github.com/users/sjsrey/orgs","repos_url":"https://api.github.com/users/sjsrey/repos","events_url":"https://api.github.com/users/sjsrey/events{/privacy}","received_events_url":"https://api.github.com/users/sjsrey/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":5,"state":"open","created_at":"2013-07-01T17:03:27Z","updated_at":"2016-01-21T00:32:44Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-03-08T03:51:33Z","updated_at":"2016-02-05T23:41:14Z","closed_at":null,"body":"When running ml_lag, I get the following error: IndexError: invalid index to scalar variable. This is from the code: self.rho = res.x[0][0]. I went into the ml_lag file in spreg and printed out res, which is the OptimizeResult object from scipy. This was the following output:\r\nstatus: 0\r\n    nfev: 36\r\n success: True\r\n     fun: array([[ nan]])\r\n       x: -0.23606797749978981\r\n message: 'Solution found.'\r\n\r\nX should be a solution array, but here it is just a scalar value. I changed rho = res.x[0][0] to rho=res.x; however, that gave me problems elsewhere."},"comment":{"url":"https://api.github.com/repos/pysal/pysal/issues/comments/180625399","html_url":"https://github.com/pysal/pysal/issues/587#issuecomment-180625399","issue_url":"https://api.github.com/repos/pysal/pysal/issues/587","id":180625399,"user":{"login":"ljwolf","id":2250995,"avatar_url":"https://avatars.githubusercontent.com/u/2250995?v=3","gravatar_id":"","url":"https://api.github.com/users/ljwolf","html_url":"https://github.com/ljwolf","followers_url":"https://api.github.com/users/ljwolf/followers","following_url":"https://api.github.com/users/ljwolf/following{/other_user}","gists_url":"https://api.github.com/users/ljwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/ljwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljwolf/subscriptions","organizations_url":"https://api.github.com/users/ljwolf/orgs","repos_url":"https://api.github.com/users/ljwolf/repos","events_url":"https://api.github.com/users/ljwolf/events{/privacy}","received_events_url":"https://api.github.com/users/ljwolf/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T23:41:13Z","updated_at":"2016-02-05T23:41:13Z","body":"Hmm... Okay. Bummer. I'll keep pushing on this, but I need to be able to replicate the error to solve the problem."}}