{"action":"opened","issue":{"url":"https://api.github.com/repos/samuelyeewl/specmatch-emp/issues/18","repository_url":"https://api.github.com/repos/samuelyeewl/specmatch-emp","labels_url":"https://api.github.com/repos/samuelyeewl/specmatch-emp/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/samuelyeewl/specmatch-emp/issues/18/comments","events_url":"https://api.github.com/repos/samuelyeewl/specmatch-emp/issues/18/events","html_url":"https://github.com/samuelyeewl/specmatch-emp/issues/18","id":189870345,"number":18,"title":"Latest commit to shift.py \"breaks\" spectral shifting","user":{"login":"mikelum","id":460592,"avatar_url":"https://avatars.githubusercontent.com/u/460592?v=3","gravatar_id":"","url":"https://api.github.com/users/mikelum","html_url":"https://github.com/mikelum","followers_url":"https://api.github.com/users/mikelum/followers","following_url":"https://api.github.com/users/mikelum/following{/other_user}","gists_url":"https://api.github.com/users/mikelum/gists{/gist_id}","starred_url":"https://api.github.com/users/mikelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikelum/subscriptions","organizations_url":"https://api.github.com/users/mikelum/orgs","repos_url":"https://api.github.com/users/mikelum/repos","events_url":"https://api.github.com/users/mikelum/events{/privacy}","received_events_url":"https://api.github.com/users/mikelum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T22:36:35Z","updated_at":"2016-11-16T22:36:35Z","closed_at":null,"body":"Sorry Samuel, I swear I'm not breaking things intentionally! ;)\r\nWith the latest commit to shift.py, for certain spectra, my test suite crashes with a ValueError (see below). If I roll back to the prior version, the same spectrum matches and shifts fine:\r\n\r\nPossibly an off-by-one error?\r\n\r\n--Mike\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"testSpecmatch.py\", line 177, in <module>\r\n    testSpecMatch(testSpectra[2])\r\n  File \"testSpecmatch.py\", line 140, in testSpecMatch\r\n    myMatches.shift()\r\n  File \"build/bdist.linux-x86_64/egg/specmatchemp/specmatch.py\", line 140, in shift\r\n  File \"build/bdist.linux-x86_64/egg/specmatchemp/shift.py\", line 83, in bootstrap_shift\r\n  File \"build/bdist.linux-x86_64/egg/specmatchemp/shift.py\", line 260, in shift\r\n  File \"/home/mikelum/Tools/Astro/anaconda2/lib/python2.7/site-packages/scipy/optimize/_lsq/least_squares.py\", line 775, in least_squares\r\n    raise ValueError(\"Residuals are not finite in the initial point.\")\r\nValueError: Residuals are not finite in the initial point.\r\n\r\n```"}}
{"actor":{"display_login":"mikelum"}}