{"action":"opened","issue":{"url":"https://api.github.com/repos/mubeta06/python/issues/2","labels_url":"https://api.github.com/repos/mubeta06/python/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mubeta06/python/issues/2/comments","events_url":"https://api.github.com/repos/mubeta06/python/issues/2/events","html_url":"https://github.com/mubeta06/python/issues/2","id":96576846,"number":2,"title":"resample return is shifted by one sample","user":{"login":"davidallenmann","id":5449110,"avatar_url":"https://avatars.githubusercontent.com/u/5449110?v=3","gravatar_id":"","url":"https://api.github.com/users/davidallenmann","html_url":"https://github.com/davidallenmann","followers_url":"https://api.github.com/users/davidallenmann/followers","following_url":"https://api.github.com/users/davidallenmann/following{/other_user}","gists_url":"https://api.github.com/users/davidallenmann/gists{/gist_id}","starred_url":"https://api.github.com/users/davidallenmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidallenmann/subscriptions","organizations_url":"https://api.github.com/users/davidallenmann/orgs","repos_url":"https://api.github.com/users/davidallenmann/repos","events_url":"https://api.github.com/users/davidallenmann/events{/privacy}","received_events_url":"https://api.github.com/users/davidallenmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-22T14:06:21Z","updated_at":"2015-07-22T14:06:21Z","closed_at":null,"body":"nice library\r\ntesting resample with short inputs and checking sample alignment, the output is shifted by one sample.\r\n\r\none fix is:     offset = numpy.floor((l+nz_pre)/q) - 1\r\n\r\n"}}