{"action":"closed","number":4381,"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/4381","id":27003170,"html_url":"https://github.com/scipy/scipy/pull/4381","diff_url":"https://github.com/scipy/scipy/pull/4381.diff","patch_url":"https://github.com/scipy/scipy/pull/4381.patch","issue_url":"https://api.github.com/repos/scipy/scipy/issues/4381","number":4381,"state":"closed","locked":false,"title":"ENH: Make DCT and DST accept int and complex types like fft","user":{"login":"pbrod","id":1193469,"avatar_url":"https://avatars.githubusercontent.com/u/1193469?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrod","html_url":"https://github.com/pbrod","followers_url":"https://api.github.com/users/pbrod/followers","following_url":"https://api.github.com/users/pbrod/following{/other_user}","gists_url":"https://api.github.com/users/pbrod/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrod/subscriptions","organizations_url":"https://api.github.com/users/pbrod/orgs","repos_url":"https://api.github.com/users/pbrod/repos","events_url":"https://api.github.com/users/pbrod/events{/privacy}","received_events_url":"https://api.github.com/users/pbrod/received_events","type":"User","site_admin":false},"body":"The dct and dst functions should upcast int types to float automatically.\r\n\r\nThis is similar to #2776, but with tests.\r\n\r\nAlso replaced if/elif chains with a dict in the _dst and _dct functions in order to make the code more compact and added the padding/truncation option which was missing. The code now also supports complex input.\r\n\r\n","created_at":"2015-01-08T02:11:15Z","updated_at":"2015-04-28T17:07:19Z","closed_at":"2015-04-28T17:07:18Z","merged_at":"2015-04-28T17:07:18Z","merge_commit_sha":"09bf08be62913cc83d1d1c2db2146949b7b2f9d7","assignee":null,"milestone":{"url":"https://api.github.com/repos/scipy/scipy/milestones/24","html_url":"https://github.com/scipy/scipy/milestones/0.16.0","labels_url":"https://api.github.com/repos/scipy/scipy/milestones/24/labels","id":792277,"number":24,"title":"0.16.0","description":"","creator":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":313,"state":"open","created_at":"2014-09-16T21:15:40Z","updated_at":"2015-04-28T17:07:18Z","due_on":"2015-05-30T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/scipy/scipy/pulls/4381/commits","review_comments_url":"https://api.github.com/repos/scipy/scipy/pulls/4381/comments","review_comment_url":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/4381/comments","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/2af6bde018733d96447fcd3b883ba3811f33df92","head":{"label":"pbrod:ENH_make_DCT_accept_int_and_complex","ref":"ENH_make_DCT_accept_int_and_complex","sha":"2af6bde018733d96447fcd3b883ba3811f33df92","user":{"login":"pbrod","id":1193469,"avatar_url":"https://avatars.githubusercontent.com/u/1193469?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrod","html_url":"https://github.com/pbrod","followers_url":"https://api.github.com/users/pbrod/followers","following_url":"https://api.github.com/users/pbrod/following{/other_user}","gists_url":"https://api.github.com/users/pbrod/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrod/subscriptions","organizations_url":"https://api.github.com/users/pbrod/orgs","repos_url":"https://api.github.com/users/pbrod/repos","events_url":"https://api.github.com/users/pbrod/events{/privacy}","received_events_url":"https://api.github.com/users/pbrod/received_events","type":"User","site_admin":false},"repo":{"id":8675880,"name":"scipy","full_name":"pbrod/scipy","owner":{"login":"pbrod","id":1193469,"avatar_url":"https://avatars.githubusercontent.com/u/1193469?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrod","html_url":"https://github.com/pbrod","followers_url":"https://api.github.com/users/pbrod/followers","following_url":"https://api.github.com/users/pbrod/following{/other_user}","gists_url":"https://api.github.com/users/pbrod/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrod/subscriptions","organizations_url":"https://api.github.com/users/pbrod/orgs","repos_url":"https://api.github.com/users/pbrod/repos","events_url":"https://api.github.com/users/pbrod/events{/privacy}","received_events_url":"https://api.github.com/users/pbrod/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pbrod/scipy","description":"Scipy main repository","fork":true,"url":"https://api.github.com/repos/pbrod/scipy","forks_url":"https://api.github.com/repos/pbrod/scipy/forks","keys_url":"https://api.github.com/repos/pbrod/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbrod/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbrod/scipy/teams","hooks_url":"https://api.github.com/repos/pbrod/scipy/hooks","issue_events_url":"https://api.github.com/repos/pbrod/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/pbrod/scipy/events","assignees_url":"https://api.github.com/repos/pbrod/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/pbrod/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/pbrod/scipy/tags","blobs_url":"https://api.github.com/repos/pbrod/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbrod/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbrod/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbrod/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbrod/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/pbrod/scipy/languages","stargazers_url":"https://api.github.com/repos/pbrod/scipy/stargazers","contributors_url":"https://api.github.com/repos/pbrod/scipy/contributors","subscribers_url":"https://api.github.com/repos/pbrod/scipy/subscribers","subscription_url":"https://api.github.com/repos/pbrod/scipy/subscription","commits_url":"https://api.github.com/repos/pbrod/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbrod/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbrod/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbrod/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbrod/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/pbrod/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbrod/scipy/merges","archive_url":"https://api.github.com/repos/pbrod/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbrod/scipy/downloads","issues_url":"https://api.github.com/repos/pbrod/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/pbrod/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/pbrod/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/pbrod/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbrod/scipy/labels{/name}","releases_url":"https://api.github.com/repos/pbrod/scipy/releases{/id}","created_at":"2013-03-09T20:42:41Z","updated_at":"2013-08-13T11:14:56Z","pushed_at":"2015-04-28T09:39:26Z","git_url":"git://github.com/pbrod/scipy.git","ssh_url":"git@github.com:pbrod/scipy.git","clone_url":"https://github.com/pbrod/scipy.git","svn_url":"https://github.com/pbrod/scipy","homepage":"http://scipy.org/","size":54285,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scipy:master","ref":"master","sha":"e9eda327041eb210ed3cb635b550d5d62f3f25fb","user":{"login":"scipy","id":288277,"avatar_url":"https://avatars.githubusercontent.com/u/288277?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"repo":{"id":1460385,"name":"scipy","full_name":"scipy/scipy","owner":{"login":"scipy","id":288277,"avatar_url":"https://avatars.githubusercontent.com/u/288277?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scipy/scipy","description":"Scipy library main repository","fork":false,"url":"https://api.github.com/repos/scipy/scipy","forks_url":"https://api.github.com/repos/scipy/scipy/forks","keys_url":"https://api.github.com/repos/scipy/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scipy/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scipy/scipy/teams","hooks_url":"https://api.github.com/repos/scipy/scipy/hooks","issue_events_url":"https://api.github.com/repos/scipy/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/scipy/scipy/events","assignees_url":"https://api.github.com/repos/scipy/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/scipy/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/scipy/scipy/tags","blobs_url":"https://api.github.com/repos/scipy/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scipy/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scipy/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/scipy/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/scipy/scipy/languages","stargazers_url":"https://api.github.com/repos/scipy/scipy/stargazers","contributors_url":"https://api.github.com/repos/scipy/scipy/contributors","subscribers_url":"https://api.github.com/repos/scipy/scipy/subscribers","subscription_url":"https://api.github.com/repos/scipy/scipy/subscription","commits_url":"https://api.github.com/repos/scipy/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/scipy/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/scipy/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/scipy/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/scipy/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/scipy/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scipy/scipy/merges","archive_url":"https://api.github.com/repos/scipy/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scipy/scipy/downloads","issues_url":"https://api.github.com/repos/scipy/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/scipy/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/scipy/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/scipy/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scipy/scipy/labels{/name}","releases_url":"https://api.github.com/repos/scipy/scipy/releases{/id}","created_at":"2011-03-09T18:52:03Z","updated_at":"2015-04-28T07:38:40Z","pushed_at":"2015-04-28T17:07:18Z","git_url":"git://github.com/scipy/scipy.git","ssh_url":"git@github.com:scipy/scipy.git","clone_url":"https://github.com/scipy/scipy.git","svn_url":"https://github.com/scipy/scipy","homepage":"http://scipy.org/scipylib/","size":86820,"stargazers_count":1604,"watchers_count":1604,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":874,"mirror_url":null,"open_issues_count":796,"forks":874,"open_issues":796,"watchers":1604,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4381"},"html":{"href":"https://github.com/scipy/scipy/pull/4381"},"issue":{"href":"https://api.github.com/repos/scipy/scipy/issues/4381"},"comments":{"href":"https://api.github.com/repos/scipy/scipy/issues/4381/comments"},"review_comments":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4381/comments"},"review_comment":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4381/commits"},"statuses":{"href":"https://api.github.com/repos/scipy/scipy/statuses/2af6bde018733d96447fcd3b883ba3811f33df92"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ev-br","id":2133832,"avatar_url":"https://avatars.githubusercontent.com/u/2133832?v=3","gravatar_id":"","url":"https://api.github.com/users/ev-br","html_url":"https://github.com/ev-br","followers_url":"https://api.github.com/users/ev-br/followers","following_url":"https://api.github.com/users/ev-br/following{/other_user}","gists_url":"https://api.github.com/users/ev-br/gists{/gist_id}","starred_url":"https://api.github.com/users/ev-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ev-br/subscriptions","organizations_url":"https://api.github.com/users/ev-br/orgs","repos_url":"https://api.github.com/users/ev-br/repos","events_url":"https://api.github.com/users/ev-br/events{/privacy}","received_events_url":"https://api.github.com/users/ev-br/received_events","type":"User","site_admin":false},"comments":11,"review_comments":5,"commits":1,"additions":247,"deletions":130,"changed_files":2}}