{"action":"created","comment":{"url":"https://api.github.com/repos/scipy/scipy/pulls/comments/34962429","id":34962429,"diff_hunk":"@@ -1039,6 +1095,16 @@ def moment(a, moment=1, axis=0):\n \n     \"\"\"\n     a, axis = _chk_asarray(a, axis)\n+\n+    contains_nan, nan_policy = _contains_nan(a, nan_policy)\n+\n+    # TODO: implement the delegation to mstats when nan_policy == 'omit'\n+    # if contains_nan and nan_policy == 'omit':\n+    #     a = ma.masked_invalid(a)","path":"scipy/stats/stats.py","position":156,"original_position":156,"commit_id":"37b18c1c4fccdd37a258258150c4cbc2a86b0fa8","original_commit_id":"37b18c1c4fccdd37a258258150c4cbc2a86b0fa8","user":{"login":"aeklant","id":56091,"avatar_url":"https://avatars.githubusercontent.com/u/56091?v=3","gravatar_id":"","url":"https://api.github.com/users/aeklant","html_url":"https://github.com/aeklant","followers_url":"https://api.github.com/users/aeklant/followers","following_url":"https://api.github.com/users/aeklant/following{/other_user}","gists_url":"https://api.github.com/users/aeklant/gists{/gist_id}","starred_url":"https://api.github.com/users/aeklant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeklant/subscriptions","organizations_url":"https://api.github.com/users/aeklant/orgs","repos_url":"https://api.github.com/users/aeklant/repos","events_url":"https://api.github.com/users/aeklant/events{/privacy}","received_events_url":"https://api.github.com/users/aeklant/received_events","type":"User","site_admin":false},"body":"This is commented until we come up with a way to deal with the problem importing `mstats`.","created_at":"2015-07-19T21:40:22Z","updated_at":"2015-07-19T21:40:22Z","html_url":"https://github.com/scipy/scipy/pull/5007#discussion_r34962429","pull_request_url":"https://api.github.com/repos/scipy/scipy/pulls/5007","_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments/34962429"},"html":{"href":"https://github.com/scipy/scipy/pull/5007#discussion_r34962429"},"pull_request":{"href":"https://api.github.com/repos/scipy/scipy/pulls/5007"}}},"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/5007","id":38934848,"html_url":"https://github.com/scipy/scipy/pull/5007","diff_url":"https://github.com/scipy/scipy/pull/5007.diff","patch_url":"https://github.com/scipy/scipy/pull/5007.patch","issue_url":"https://api.github.com/repos/scipy/scipy/issues/5007","number":5007,"state":"open","locked":false,"title":"ENH: nan handling in functions that use `stats._chk_asarray`","user":{"login":"aeklant","id":56091,"avatar_url":"https://avatars.githubusercontent.com/u/56091?v=3","gravatar_id":"","url":"https://api.github.com/users/aeklant","html_url":"https://github.com/aeklant","followers_url":"https://api.github.com/users/aeklant/followers","following_url":"https://api.github.com/users/aeklant/following{/other_user}","gists_url":"https://api.github.com/users/aeklant/gists{/gist_id}","starred_url":"https://api.github.com/users/aeklant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeklant/subscriptions","organizations_url":"https://api.github.com/users/aeklant/orgs","repos_url":"https://api.github.com/users/aeklant/repos","events_url":"https://api.github.com/users/aeklant/events{/privacy}","received_events_url":"https://api.github.com/users/aeklant/received_events","type":"User","site_admin":false},"body":"closes gh-571","created_at":"2015-06-30T23:20:06Z","updated_at":"2015-07-19T21:40:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fc9910977dc8b7757aa7b13a6b5c2a577a6857f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scipy/scipy/pulls/5007/commits","review_comments_url":"https://api.github.com/repos/scipy/scipy/pulls/5007/comments","review_comment_url":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/5007/comments","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/37b18c1c4fccdd37a258258150c4cbc2a86b0fa8","head":{"label":"aeklant:_chk_asarray","ref":"_chk_asarray","sha":"37b18c1c4fccdd37a258258150c4cbc2a86b0fa8","user":{"login":"aeklant","id":56091,"avatar_url":"https://avatars.githubusercontent.com/u/56091?v=3","gravatar_id":"","url":"https://api.github.com/users/aeklant","html_url":"https://github.com/aeklant","followers_url":"https://api.github.com/users/aeklant/followers","following_url":"https://api.github.com/users/aeklant/following{/other_user}","gists_url":"https://api.github.com/users/aeklant/gists{/gist_id}","starred_url":"https://api.github.com/users/aeklant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeklant/subscriptions","organizations_url":"https://api.github.com/users/aeklant/orgs","repos_url":"https://api.github.com/users/aeklant/repos","events_url":"https://api.github.com/users/aeklant/events{/privacy}","received_events_url":"https://api.github.com/users/aeklant/received_events","type":"User","site_admin":false},"repo":{"id":31669388,"name":"scipy","full_name":"aeklant/scipy","owner":{"login":"aeklant","id":56091,"avatar_url":"https://avatars.githubusercontent.com/u/56091?v=3","gravatar_id":"","url":"https://api.github.com/users/aeklant","html_url":"https://github.com/aeklant","followers_url":"https://api.github.com/users/aeklant/followers","following_url":"https://api.github.com/users/aeklant/following{/other_user}","gists_url":"https://api.github.com/users/aeklant/gists{/gist_id}","starred_url":"https://api.github.com/users/aeklant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeklant/subscriptions","organizations_url":"https://api.github.com/users/aeklant/orgs","repos_url":"https://api.github.com/users/aeklant/repos","events_url":"https://api.github.com/users/aeklant/events{/privacy}","received_events_url":"https://api.github.com/users/aeklant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aeklant/scipy","description":"Scipy library main repository","fork":true,"url":"https://api.github.com/repos/aeklant/scipy","forks_url":"https://api.github.com/repos/aeklant/scipy/forks","keys_url":"https://api.github.com/repos/aeklant/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aeklant/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aeklant/scipy/teams","hooks_url":"https://api.github.com/repos/aeklant/scipy/hooks","issue_events_url":"https://api.github.com/repos/aeklant/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/aeklant/scipy/events","assignees_url":"https://api.github.com/repos/aeklant/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/aeklant/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/aeklant/scipy/tags","blobs_url":"https://api.github.com/repos/aeklant/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aeklant/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aeklant/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/aeklant/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aeklant/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/aeklant/scipy/languages","stargazers_url":"https://api.github.com/repos/aeklant/scipy/stargazers","contributors_url":"https://api.github.com/repos/aeklant/scipy/contributors","subscribers_url":"https://api.github.com/repos/aeklant/scipy/subscribers","subscription_url":"https://api.github.com/repos/aeklant/scipy/subscription","commits_url":"https://api.github.com/repos/aeklant/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/aeklant/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/aeklant/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/aeklant/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/aeklant/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/aeklant/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aeklant/scipy/merges","archive_url":"https://api.github.com/repos/aeklant/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aeklant/scipy/downloads","issues_url":"https://api.github.com/repos/aeklant/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/aeklant/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/aeklant/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/aeklant/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aeklant/scipy/labels{/name}","releases_url":"https://api.github.com/repos/aeklant/scipy/releases{/id}","created_at":"2015-03-04T17:15:31Z","updated_at":"2015-04-08T23:29:41Z","pushed_at":"2015-07-19T20:12:19Z","git_url":"git://github.com/aeklant/scipy.git","ssh_url":"git@github.com:aeklant/scipy.git","clone_url":"https://github.com/aeklant/scipy.git","svn_url":"https://github.com/aeklant/scipy","homepage":"http://scipy.org/scipylib/","size":56690,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"390acd9748df61300766b7495fdade24fdaf37bb","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-07-19T14:10:42Z","pushed_at":"2015-07-19T21:36:42Z","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":88542,"stargazers_count":1736,"watchers_count":1736,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":961,"mirror_url":null,"open_issues_count":862,"forks":961,"open_issues":862,"watchers":1736,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/5007"},"html":{"href":"https://github.com/scipy/scipy/pull/5007"},"issue":{"href":"https://api.github.com/repos/scipy/scipy/issues/5007"},"comments":{"href":"https://api.github.com/repos/scipy/scipy/issues/5007/comments"},"review_comments":{"href":"https://api.github.com/repos/scipy/scipy/pulls/5007/comments"},"review_comment":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scipy/scipy/pulls/5007/commits"},"statuses":{"href":"https://api.github.com/repos/scipy/scipy/statuses/37b18c1c4fccdd37a258258150c4cbc2a86b0fa8"}}}}