{"action":"opened","issue":{"url":"https://api.github.com/repos/vidartf/ipydatawidgets/issues/4","repository_url":"https://api.github.com/repos/vidartf/ipydatawidgets","labels_url":"https://api.github.com/repos/vidartf/ipydatawidgets/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/vidartf/ipydatawidgets/issues/4/comments","events_url":"https://api.github.com/repos/vidartf/ipydatawidgets/issues/4/events","html_url":"https://github.com/vidartf/ipydatawidgets/issues/4","id":251226114,"number":4,"title":"Warn when coercing dtype","user":{"login":"vidartf","id":510760,"avatar_url":"https://avatars3.githubusercontent.com/u/510760?v=4","gravatar_id":"","url":"https://api.github.com/users/vidartf","html_url":"https://github.com/vidartf","followers_url":"https://api.github.com/users/vidartf/followers","following_url":"https://api.github.com/users/vidartf/following{/other_user}","gists_url":"https://api.github.com/users/vidartf/gists{/gist_id}","starred_url":"https://api.github.com/users/vidartf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidartf/subscriptions","organizations_url":"https://api.github.com/users/vidartf/orgs","repos_url":"https://api.github.com/users/vidartf/repos","events_url":"https://api.github.com/users/vidartf/events{/privacy}","received_events_url":"https://api.github.com/users/vidartf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-18T12:09:00Z","updated_at":"2017-08-18T12:09:00Z","closed_at":null,"body":"When supplying a sequence/iterable to an array trait it makes sense to coerce it to an ndarray without warning. However, when passing an ndarray to a dtype-constrained trait, it should warn that it is coercing the dtype. This is because this coercion creates a copy of the array, meaning that the original array passed in is no longer a valid handle to the value stored in the trait (which is significant for in-place operations).\r\n\r\nThe warning should contain the source and destination dtypes of the coercion."}}
{"actor":{"display_login":"vidartf"}}