{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/photutils/issues/261","labels_url":"https://api.github.com/repos/astropy/photutils/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/astropy/photutils/issues/261/comments","events_url":"https://api.github.com/repos/astropy/photutils/issues/261/events","html_url":"https://github.com/astropy/photutils/pull/261","id":66956505,"number":261,"title":"Change centroid functions output to be in (y, x) order","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},"labels":[{"url":"https://api.github.com/repos/astropy/photutils/labels/API","name":"API","color":"009800"},{"url":"https://api.github.com/repos/astropy/photutils/labels/detect","name":"detect","color":"5319e7"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/astropy/photutils/milestones/2","html_url":"https://github.com/astropy/photutils/milestones/0.2","labels_url":"https://api.github.com/repos/astropy/photutils/milestones/2/labels","id":641620,"number":2,"title":"0.2","description":"","creator":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":31,"state":"open","created_at":"2014-04-27T14:56:36Z","updated_at":"2015-04-07T18:10:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-07T18:10:06Z","updated_at":"2015-04-07T19:36:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/photutils/pulls/261","html_url":"https://github.com/astropy/photutils/pull/261","diff_url":"https://github.com/astropy/photutils/pull/261.diff","patch_url":"https://github.com/astropy/photutils/pull/261.patch"},"body":"This makes the centroid functions consistent with `SegmentProperties` centroids."},"comment":{"url":"https://api.github.com/repos/astropy/photutils/issues/comments/90708346","html_url":"https://github.com/astropy/photutils/pull/261#issuecomment-90708346","issue_url":"https://api.github.com/repos/astropy/photutils/issues/261","id":90708346,"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},"created_at":"2015-04-07T19:36:20Z","updated_at":"2015-04-07T19:36:20Z","body":"I like `(y, x)` better because it can be used directly for array indexing.  In principle, one could argue that the aperture `positions` should also be in `(y, x)` axis order.  It would be nice to have a consistent API that would also work with array indexing, but perhaps changing everything to `(y, x)` will cause too much confusion?\r\n\r\nUsing a `namedtuple` has the advantage of making `x` and `y` explicit, which is nice, at the expense of making direct array indexing a little more cumbersome.  Even so, that's probably better than having to flip an `(x, y)` index (or remember that you *need* to flip `x` and `y`).\r\n\r\nDoes anyone else have other thoughts before I change this PR to use `namedtuple`s?"}}