{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2869","repository_url":"https://api.github.com/repos/scikit-image/scikit-image","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2869/labels{/name}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2869/comments","events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2869/events","html_url":"https://github.com/scikit-image/scikit-image/pull/2869","id":271024594,"number":2869,"title":"Fix `centroid` and add test coverage.","user":{"login":"kne42","id":29165011,"avatar_url":"https://avatars3.githubusercontent.com/u/29165011?v=4","gravatar_id":"","url":"https://api.github.com/users/kne42","html_url":"https://github.com/kne42","followers_url":"https://api.github.com/users/kne42/followers","following_url":"https://api.github.com/users/kne42/following{/other_user}","gists_url":"https://api.github.com/users/kne42/gists{/gist_id}","starred_url":"https://api.github.com/users/kne42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kne42/subscriptions","organizations_url":"https://api.github.com/users/kne42/orgs","repos_url":"https://api.github.com/users/kne42/repos","events_url":"https://api.github.com/users/kne42/events{/privacy}","received_events_url":"https://api.github.com/users/kne42/received_events","type":"User","site_admin":false},"labels":[{"id":360215658,"url":"https://api.github.com/repos/scikit-image/scikit-image/labels/status:%20in%20progress","name":"status: in progress","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-03T15:46:37Z","updated_at":"2017-11-05T00:49:10Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/2869","html_url":"https://github.com/scikit-image/scikit-image/pull/2869","diff_url":"https://github.com/scikit-image/scikit-image/pull/2869.diff","patch_url":"https://github.com/scikit-image/scikit-image/pull/2869.patch"},"body":"## Description\r\nFixes the computation of centroid in `centroid` by dividing the sum of each axes' weighted points by the \"area\" (sum of all weighted points).\r\n\r\n\r\n## Checklist\r\n- [x] Clean style in [the spirit of PEP8](https://www.python.org/dev/peps/pep-0008/)\r\n- [ ] Unit tests\r\n\r\n\r\n## References\r\nCloses #2868.\r\n\r\n## For reviewers\r\n\r\n- [ ] Check that the PR title is short, concise, and will make sense 1 year\r\n  later.\r\n- [ ] Check that new functions are imported in corresponding `__init__.py`.\r\n- [ ] Check that new features, API changes, and deprecations are mentioned in\r\n      `doc/release/release_dev.rst`.\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments/341940919","html_url":"https://github.com/scikit-image/scikit-image/pull/2869#issuecomment-341940919","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2869","id":341940919,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars0.githubusercontent.com/u/8655789?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2017-11-05T00:49:10Z","updated_at":"2017-11-05T00:49:10Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=h1) Report\n> Merging [#2869](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=desc) into [master](https://codecov.io/gh/scikit-image/scikit-image/commit/cf8d02006b9feba19021ed1c0a2e76bc43f96da1?src=pr&el=desc) will **increase** coverage by `<.01%`.\n> The diff coverage is `100%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/scikit-image/scikit-image/pull/2869/graphs/tree.svg?token=q7tPZLuLSt&width=650&src=pr&height=150)](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff             @@\n##           master    #2869      +/-   ##\n==========================================\n+ Coverage   86.01%   86.01%   +<.01%     \n==========================================\n  Files         332      332              \n  Lines       26627    26629       +2     \n==========================================\n+ Hits        22904    22906       +2     \n  Misses       3723     3723\n```\n\n\n| [Impacted Files](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [skimage/measure/\\_moments.py](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=tree#diff-c2tpbWFnZS9tZWFzdXJlL19tb21lbnRzLnB5) | `96.72% <100%> (ø)` | :arrow_up: |\n| [skimage/measure/tests/test\\_moments.py](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=tree#diff-c2tpbWFnZS9tZWFzdXJlL3Rlc3RzL3Rlc3RfbW9tZW50cy5weQ==) | `100% <100%> (ø)` | :arrow_up: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=footer). Last update [cf8d020...982db76](https://codecov.io/gh/scikit-image/scikit-image/pull/2869?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov-io"}}