{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4988","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4988/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4988/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4988/events","html_url":"https://github.com/astropy/astropy/pull/4988","id":157295494,"number":4988,"title":"sigma_clip expand the dimensions if axis is negative","user":{"login":"MSeifert04","id":14200878,"avatar_url":"https://avatars.githubusercontent.com/u/14200878?v=3","gravatar_id":"","url":"https://api.github.com/users/MSeifert04","html_url":"https://github.com/MSeifert04","followers_url":"https://api.github.com/users/MSeifert04/followers","following_url":"https://api.github.com/users/MSeifert04/following{/other_user}","gists_url":"https://api.github.com/users/MSeifert04/gists{/gist_id}","starred_url":"https://api.github.com/users/MSeifert04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSeifert04/subscriptions","organizations_url":"https://api.github.com/users/MSeifert04/orgs","repos_url":"https://api.github.com/users/MSeifert04/repos","events_url":"https://api.github.com/users/MSeifert04/events{/privacy}","received_events_url":"https://api.github.com/users/MSeifert04/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/stats","name":"stats","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T21:41:01Z","updated_at":"2016-06-01T07:56:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/4988","html_url":"https://github.com/astropy/astropy/pull/4988","diff_url":"https://github.com/astropy/astropy/pull/4988.diff","patch_url":"https://github.com/astropy/astropy/pull/4988.patch"},"body":"Negative axis parameters don't play well with the current version of `sigma_clip`:\r\n\r\n```\r\nfrom astropy.stats import sigma_clip\r\nimport numpy as np\r\nsigma_clip(np.ones((3, 4)), axis=-1)\r\nValueError: operands could not be broadcast together with shapes (3,4) (3,) \r\n```\r\nThis PR fixes this issue by expanding the dimensions of the reduced center and standard deviation in all cases except when axis=0.\r\n\r\n~~and I don't know why it has conflicts, I've created a new branch based on master just before I pushed it.~~"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/222919893","html_url":"https://github.com/astropy/astropy/pull/4988#issuecomment-222919893","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4988","id":222919893,"user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T07:56:36Z","updated_at":"2016-06-01T07:56:36Z","body":"@crawfordsm @astronomeralex - should we treat this as a bug fix? If so, we'll need to add the 1.2 milestone (or 1.0.10 if it can be backported there) and a changelog entry."}}
{"actor":{"display_login":"astrofrog"}}