{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2602","repository_url":"https://api.github.com/repos/scikit-image/scikit-image","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2602/labels{/name}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2602/comments","events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2602/events","html_url":"https://github.com/scikit-image/scikit-image/issues/2602","id":220435380,"number":2602,"title":"Add warn keyword to img_as_* functions","user":{"login":"jni","id":492549,"avatar_url":"https://avatars0.githubusercontent.com/u/492549?v=3","gravatar_id":"","url":"https://api.github.com/users/jni","html_url":"https://github.com/jni","followers_url":"https://api.github.com/users/jni/followers","following_url":"https://api.github.com/users/jni/following{/other_user}","gists_url":"https://api.github.com/users/jni/gists{/gist_id}","starred_url":"https://api.github.com/users/jni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jni/subscriptions","organizations_url":"https://api.github.com/users/jni/orgs","repos_url":"https://api.github.com/users/jni/repos","events_url":"https://api.github.com/users/jni/events{/privacy}","received_events_url":"https://api.github.com/users/jni/received_events","type":"User","site_admin":false},"labels":[{"id":360216647,"url":"https://api.github.com/repos/scikit-image/scikit-image/labels/status:%20needs%20decision","name":"status: needs decision","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-08T23:42:08Z","updated_at":"2017-04-11T12:36:25Z","closed_at":null,"body":"Image conversion from float to uint8 is very, very common, and usually people know what they're doing when using it, and don't appreciate the annoying warning. A brief discussion in https://github.com/scikit-image/scikit-image/issues/543#issuecomment-292221966 suggests that users might like a `img_as_uint8(..., warn=False)` keyword argument as a way to suppress the warnings.\r\n\r\nThe same would be true for `imsave` and low contrast images.\r\n\r\nAnother idea would be to only warn when the apparent dynamic range is dramatically compressed, even when `warn=True`.\r\n\r\nDiscuss. =P"},"comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments/293246488","html_url":"https://github.com/scikit-image/scikit-image/issues/2602#issuecomment-293246488","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2602","id":293246488,"user":{"login":"mpt5","id":19578852,"avatar_url":"https://avatars1.githubusercontent.com/u/19578852?v=3","gravatar_id":"","url":"https://api.github.com/users/mpt5","html_url":"https://github.com/mpt5","followers_url":"https://api.github.com/users/mpt5/followers","following_url":"https://api.github.com/users/mpt5/following{/other_user}","gists_url":"https://api.github.com/users/mpt5/gists{/gist_id}","starred_url":"https://api.github.com/users/mpt5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpt5/subscriptions","organizations_url":"https://api.github.com/users/mpt5/orgs","repos_url":"https://api.github.com/users/mpt5/repos","events_url":"https://api.github.com/users/mpt5/events{/privacy}","received_events_url":"https://api.github.com/users/mpt5/received_events","type":"User","site_admin":false},"created_at":"2017-04-11T12:36:25Z","updated_at":"2017-04-11T12:36:25Z","body":"+1 for the keyword proposal -- in my case hundreds of warnings get printed out since multiple files are converted sequentially in a loop"}}
{"actor":{"display_login":"mpt5"}}