{"action":"created","comment":{"url":"https://api.github.com/repos/astropy/astropy/pulls/comments/22533091","id":22533091,"diff_hunk":"@@ -180,6 +180,7 @@ def sigma_clipped_stats(data, mask=None, mask_val=None, sigma=3.0, iters=None):\n         image.\n     \"\"\"\n \n+    data = np.asanyarray(data)","path":"astropy/stats/sigma_clipping.py","position":33,"original_position":22,"commit_id":"a98e1317a9a2770e438d91fe52a77d941bb925a5","original_commit_id":"48d75f145065b19f45e59f2a55ea6091134b03ea","user":{"login":"larrybradley","id":4992897,"avatar_url":"https://avatars.githubusercontent.com/u/4992897?v=3","gravatar_id":"","url":"https://api.github.com/users/larrybradley","html_url":"https://github.com/larrybradley","followers_url":"https://api.github.com/users/larrybradley/followers","following_url":"https://api.github.com/users/larrybradley/following{/other_user}","gists_url":"https://api.github.com/users/larrybradley/gists{/gist_id}","starred_url":"https://api.github.com/users/larrybradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrybradley/subscriptions","organizations_url":"https://api.github.com/users/larrybradley/orgs","repos_url":"https://api.github.com/users/larrybradley/repos","events_url":"https://api.github.com/users/larrybradley/events{/privacy}","received_events_url":"https://api.github.com/users/larrybradley/received_events","type":"User","site_admin":false},"body":"Good idea, thanks!  I changed it to handle the masking using `MaskedArray`s and 'masked_values()`.  The code is cleaner now too.","created_at":"2015-01-06T16:40:22Z","updated_at":"2015-01-06T16:40:22Z","html_url":"https://github.com/astropy/astropy/pull/3268#discussion_r22533091","pull_request_url":"https://api.github.com/repos/astropy/astropy/pulls/3268","_links":{"self":{"href":"https://api.github.com/repos/astropy/astropy/pulls/comments/22533091"},"html":{"href":"https://github.com/astropy/astropy/pull/3268#discussion_r22533091"},"pull_request":{"href":"https://api.github.com/repos/astropy/astropy/pulls/3268"}}},"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/3268","id":26846187,"html_url":"https://github.com/astropy/astropy/pull/3268","diff_url":"https://github.com/astropy/astropy/pull/3268.diff","patch_url":"https://github.com/astropy/astropy/pull/3268.patch","issue_url":"https://api.github.com/repos/astropy/astropy/issues/3268","number":3268,"state":"open","locked":false,"title":"Updates to sigma_clipped_stats","user":{"login":"larrybradley","id":4992897,"avatar_url":"https://avatars.githubusercontent.com/u/4992897?v=3","gravatar_id":"","url":"https://api.github.com/users/larrybradley","html_url":"https://github.com/larrybradley","followers_url":"https://api.github.com/users/larrybradley/followers","following_url":"https://api.github.com/users/larrybradley/following{/other_user}","gists_url":"https://api.github.com/users/larrybradley/gists{/gist_id}","starred_url":"https://api.github.com/users/larrybradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrybradley/subscriptions","organizations_url":"https://api.github.com/users/larrybradley/orgs","repos_url":"https://api.github.com/users/larrybradley/repos","events_url":"https://api.github.com/users/larrybradley/events{/privacy}","received_events_url":"https://api.github.com/users/larrybradley/received_events","type":"User","site_admin":false},"body":"The input `data` array in `sigma_clipped_stats` doesn't need to be an image.  This PR also applies `np.asanyarray()` to allow the input `data` to be \"array-like\".","created_at":"2015-01-05T19:49:23Z","updated_at":"2015-01-06T16:40:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d81e4348287a57bf96a8316128ae1cbf7778c713","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/astropy/astropy/pulls/3268/commits","review_comments_url":"https://api.github.com/repos/astropy/astropy/pulls/3268/comments","review_comment_url":"https://api.github.com/repos/astropy/astropy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/3268/comments","statuses_url":"https://api.github.com/repos/astropy/astropy/statuses/a98e1317a9a2770e438d91fe52a77d941bb925a5","head":{"label":"larrybradley:stats","ref":"stats","sha":"a98e1317a9a2770e438d91fe52a77d941bb925a5","user":{"login":"larrybradley","id":4992897,"avatar_url":"https://avatars.githubusercontent.com/u/4992897?v=3","gravatar_id":"","url":"https://api.github.com/users/larrybradley","html_url":"https://github.com/larrybradley","followers_url":"https://api.github.com/users/larrybradley/followers","following_url":"https://api.github.com/users/larrybradley/following{/other_user}","gists_url":"https://api.github.com/users/larrybradley/gists{/gist_id}","starred_url":"https://api.github.com/users/larrybradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrybradley/subscriptions","organizations_url":"https://api.github.com/users/larrybradley/orgs","repos_url":"https://api.github.com/users/larrybradley/repos","events_url":"https://api.github.com/users/larrybradley/events{/privacy}","received_events_url":"https://api.github.com/users/larrybradley/received_events","type":"User","site_admin":false},"repo":{"id":13567623,"name":"astropy","full_name":"larrybradley/astropy","owner":{"login":"larrybradley","id":4992897,"avatar_url":"https://avatars.githubusercontent.com/u/4992897?v=3","gravatar_id":"","url":"https://api.github.com/users/larrybradley","html_url":"https://github.com/larrybradley","followers_url":"https://api.github.com/users/larrybradley/followers","following_url":"https://api.github.com/users/larrybradley/following{/other_user}","gists_url":"https://api.github.com/users/larrybradley/gists{/gist_id}","starred_url":"https://api.github.com/users/larrybradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrybradley/subscriptions","organizations_url":"https://api.github.com/users/larrybradley/orgs","repos_url":"https://api.github.com/users/larrybradley/repos","events_url":"https://api.github.com/users/larrybradley/events{/privacy}","received_events_url":"https://api.github.com/users/larrybradley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/larrybradley/astropy","description":"Main Astropy repository","fork":true,"url":"https://api.github.com/repos/larrybradley/astropy","forks_url":"https://api.github.com/repos/larrybradley/astropy/forks","keys_url":"https://api.github.com/repos/larrybradley/astropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larrybradley/astropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larrybradley/astropy/teams","hooks_url":"https://api.github.com/repos/larrybradley/astropy/hooks","issue_events_url":"https://api.github.com/repos/larrybradley/astropy/issues/events{/number}","events_url":"https://api.github.com/repos/larrybradley/astropy/events","assignees_url":"https://api.github.com/repos/larrybradley/astropy/assignees{/user}","branches_url":"https://api.github.com/repos/larrybradley/astropy/branches{/branch}","tags_url":"https://api.github.com/repos/larrybradley/astropy/tags","blobs_url":"https://api.github.com/repos/larrybradley/astropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larrybradley/astropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larrybradley/astropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/larrybradley/astropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larrybradley/astropy/statuses/{sha}","languages_url":"https://api.github.com/repos/larrybradley/astropy/languages","stargazers_url":"https://api.github.com/repos/larrybradley/astropy/stargazers","contributors_url":"https://api.github.com/repos/larrybradley/astropy/contributors","subscribers_url":"https://api.github.com/repos/larrybradley/astropy/subscribers","subscription_url":"https://api.github.com/repos/larrybradley/astropy/subscription","commits_url":"https://api.github.com/repos/larrybradley/astropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/larrybradley/astropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/larrybradley/astropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/larrybradley/astropy/issues/comments/{number}","contents_url":"https://api.github.com/repos/larrybradley/astropy/contents/{+path}","compare_url":"https://api.github.com/repos/larrybradley/astropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larrybradley/astropy/merges","archive_url":"https://api.github.com/repos/larrybradley/astropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larrybradley/astropy/downloads","issues_url":"https://api.github.com/repos/larrybradley/astropy/issues{/number}","pulls_url":"https://api.github.com/repos/larrybradley/astropy/pulls{/number}","milestones_url":"https://api.github.com/repos/larrybradley/astropy/milestones{/number}","notifications_url":"https://api.github.com/repos/larrybradley/astropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larrybradley/astropy/labels{/name}","releases_url":"https://api.github.com/repos/larrybradley/astropy/releases{/id}","created_at":"2013-10-14T17:09:24Z","updated_at":"2015-01-06T15:25:54Z","pushed_at":"2015-01-06T16:36:02Z","git_url":"git://github.com/larrybradley/astropy.git","ssh_url":"git@github.com:larrybradley/astropy.git","clone_url":"https://github.com/larrybradley/astropy.git","svn_url":"https://github.com/larrybradley/astropy","homepage":"astropy.org","size":31508,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"astropy:master","ref":"master","sha":"fecd6823dd2a3d8f8bb96b259846c5176e4bd0a4","user":{"login":"astropy","id":847984,"avatar_url":"https://avatars.githubusercontent.com/u/847984?v=3","gravatar_id":"","url":"https://api.github.com/users/astropy","html_url":"https://github.com/astropy","followers_url":"https://api.github.com/users/astropy/followers","following_url":"https://api.github.com/users/astropy/following{/other_user}","gists_url":"https://api.github.com/users/astropy/gists{/gist_id}","starred_url":"https://api.github.com/users/astropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropy/subscriptions","organizations_url":"https://api.github.com/users/astropy/orgs","repos_url":"https://api.github.com/users/astropy/repos","events_url":"https://api.github.com/users/astropy/events{/privacy}","received_events_url":"https://api.github.com/users/astropy/received_events","type":"Organization","site_admin":false},"repo":{"id":2081289,"name":"astropy","full_name":"astropy/astropy","owner":{"login":"astropy","id":847984,"avatar_url":"https://avatars.githubusercontent.com/u/847984?v=3","gravatar_id":"","url":"https://api.github.com/users/astropy","html_url":"https://github.com/astropy","followers_url":"https://api.github.com/users/astropy/followers","following_url":"https://api.github.com/users/astropy/following{/other_user}","gists_url":"https://api.github.com/users/astropy/gists{/gist_id}","starred_url":"https://api.github.com/users/astropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropy/subscriptions","organizations_url":"https://api.github.com/users/astropy/orgs","repos_url":"https://api.github.com/users/astropy/repos","events_url":"https://api.github.com/users/astropy/events{/privacy}","received_events_url":"https://api.github.com/users/astropy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/astropy/astropy","description":"Repository for the Astropy core package","fork":false,"url":"https://api.github.com/repos/astropy/astropy","forks_url":"https://api.github.com/repos/astropy/astropy/forks","keys_url":"https://api.github.com/repos/astropy/astropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astropy/astropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astropy/astropy/teams","hooks_url":"https://api.github.com/repos/astropy/astropy/hooks","issue_events_url":"https://api.github.com/repos/astropy/astropy/issues/events{/number}","events_url":"https://api.github.com/repos/astropy/astropy/events","assignees_url":"https://api.github.com/repos/astropy/astropy/assignees{/user}","branches_url":"https://api.github.com/repos/astropy/astropy/branches{/branch}","tags_url":"https://api.github.com/repos/astropy/astropy/tags","blobs_url":"https://api.github.com/repos/astropy/astropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astropy/astropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astropy/astropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/astropy/astropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astropy/astropy/statuses/{sha}","languages_url":"https://api.github.com/repos/astropy/astropy/languages","stargazers_url":"https://api.github.com/repos/astropy/astropy/stargazers","contributors_url":"https://api.github.com/repos/astropy/astropy/contributors","subscribers_url":"https://api.github.com/repos/astropy/astropy/subscribers","subscription_url":"https://api.github.com/repos/astropy/astropy/subscription","commits_url":"https://api.github.com/repos/astropy/astropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/astropy/astropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/astropy/astropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/astropy/astropy/issues/comments/{number}","contents_url":"https://api.github.com/repos/astropy/astropy/contents/{+path}","compare_url":"https://api.github.com/repos/astropy/astropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astropy/astropy/merges","archive_url":"https://api.github.com/repos/astropy/astropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astropy/astropy/downloads","issues_url":"https://api.github.com/repos/astropy/astropy/issues{/number}","pulls_url":"https://api.github.com/repos/astropy/astropy/pulls{/number}","milestones_url":"https://api.github.com/repos/astropy/astropy/milestones{/number}","notifications_url":"https://api.github.com/repos/astropy/astropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astropy/astropy/labels{/name}","releases_url":"https://api.github.com/repos/astropy/astropy/releases{/id}","created_at":"2011-07-21T01:33:49Z","updated_at":"2015-01-06T11:50:09Z","pushed_at":"2015-01-06T11:50:09Z","git_url":"git://github.com/astropy/astropy.git","ssh_url":"git@github.com:astropy/astropy.git","clone_url":"https://github.com/astropy/astropy.git","svn_url":"https://github.com/astropy/astropy","homepage":"www.astropy.org","size":54378,"stargazers_count":481,"watchers_count":481,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":331,"mirror_url":null,"open_issues_count":420,"forks":331,"open_issues":420,"watchers":481,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/astropy/astropy/pulls/3268"},"html":{"href":"https://github.com/astropy/astropy/pull/3268"},"issue":{"href":"https://api.github.com/repos/astropy/astropy/issues/3268"},"comments":{"href":"https://api.github.com/repos/astropy/astropy/issues/3268/comments"},"review_comments":{"href":"https://api.github.com/repos/astropy/astropy/pulls/3268/comments"},"review_comment":{"href":"https://api.github.com/repos/astropy/astropy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/astropy/astropy/pulls/3268/commits"},"statuses":{"href":"https://api.github.com/repos/astropy/astropy/statuses/a98e1317a9a2770e438d91fe52a77d941bb925a5"}}}}