{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/6264","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/6264/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/6264/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/6264/events","html_url":"https://github.com/astropy/astropy/issues/6264","id":237921016,"number":6264,"title":"Reproducing np.convolve with astropy.convolution.convolve","user":{"login":"mirca","id":13077051,"avatar_url":"https://avatars2.githubusercontent.com/u/13077051?v=3","gravatar_id":"","url":"https://api.github.com/users/mirca","html_url":"https://github.com/mirca","followers_url":"https://api.github.com/users/mirca/followers","following_url":"https://api.github.com/users/mirca/following{/other_user}","gists_url":"https://api.github.com/users/mirca/gists{/gist_id}","starred_url":"https://api.github.com/users/mirca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirca/subscriptions","organizations_url":"https://api.github.com/users/mirca/orgs","repos_url":"https://api.github.com/users/mirca/repos","events_url":"https://api.github.com/users/mirca/events{/privacy}","received_events_url":"https://api.github.com/users/mirca/received_events","type":"User","site_admin":false},"labels":[{"id":57200118,"url":"https://api.github.com/repos/astropy/astropy/labels/convolution","name":"convolution","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-22T17:40:45Z","updated_at":"2017-06-22T19:17:14Z","closed_at":null,"body":"This is more like a question than a issue or bug report.\r\n\r\nI wonder whether or not ``astropy.convolution.convolve`` is able to reproduce the behavior of ``numpy.convolve`` when ``mode='same'``.\r\n\r\nSee:\r\n\r\n```\r\n>>> from astropy.convolution import convolve\r\n>>> import numpy as np\r\n>>> x = np.array([1, 2, 3])\r\n>>> y = np.array([5, 4, 3, 2, 1])\r\n>>> np.convolve(y, x, mode='same')\r\narray([14, 26, 20, 14,  8])\r\n>>> convolve(y, x, normalize_kernel=False)\r\narray([ 22.,  22.,  16.,  10.,   4.])\r\n>>> convolve(y, x, normalize_kernel=True)\r\narray([ 3.66666667,  3.66666667,  2.66666667,  1.66666667,  0.66666667])\r\n>>> convolve(y, x, normalize_kernel=False, boundary=None)\r\narray([  0.,  22.,  16.,  10.,   0.])\r\n>>> convolve(y, x, normalize_kernel=False, boundary='fill')\r\narray([ 22.,  22.,  16.,  10.,   4.])\r\n>>> convolve(y, x, normalize_kernel=False, boundary='wrap')\r\narray([ 23.,  22.,  16.,  10.,  19.])\r\n>>> convolve(y, x, normalize_kernel=False, boundary='extend')\r\narray([ 27.,  22.,  16.,  10.,   7.])\r\n```\r\n\r\ncc @keflavich "},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/310476090","html_url":"https://github.com/astropy/astropy/issues/6264#issuecomment-310476090","issue_url":"https://api.github.com/repos/astropy/astropy/issues/6264","id":310476090,"user":{"login":"mirca","id":13077051,"avatar_url":"https://avatars2.githubusercontent.com/u/13077051?v=3","gravatar_id":"","url":"https://api.github.com/users/mirca","html_url":"https://github.com/mirca","followers_url":"https://api.github.com/users/mirca/followers","following_url":"https://api.github.com/users/mirca/following{/other_user}","gists_url":"https://api.github.com/users/mirca/gists{/gist_id}","starred_url":"https://api.github.com/users/mirca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirca/subscriptions","organizations_url":"https://api.github.com/users/mirca/orgs","repos_url":"https://api.github.com/users/mirca/repos","events_url":"https://api.github.com/users/mirca/events{/privacy}","received_events_url":"https://api.github.com/users/mirca/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T19:17:14Z","updated_at":"2017-06-22T19:17:14Z","body":"@astrofrog \r\n```\r\n>>> astropy.__version__\r\n'3.0.dev19236'\r\n```"}}
{"actor":{"display_login":"mirca"}}