html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/4212#issuecomment-660297175,https://api.github.com/repos/pydata/xarray/issues/4212,660297175,MDEyOklzc3VlQ29tbWVudDY2MDI5NzE3NQ==,14808389,2020-07-17T19:26:14Z,2020-07-17T19:26:14Z,MEMBER,"> While I'm sure some compatibility code has gone into xarray
actually, I have been able to get by without compatibility code, the code changes outside of `test_units` are mostly code refactoring (see #3706). This is probably because `pint` behaves (or tries to behave) like whatever it is wrapping, so that doesn't have to apply to other duck arrays.
While adding support for `cupy` as a 1st party might be less complicated, I think we should aim for 3rd party because that might be more maintainable, and adding support for similar duck arrays would become easier (I might be missing something, though).
While there are parts where interaction between `numpy.ndarray` and `cupy.ndarray` fails (e.g. #4231) – I still don't have any idea how to fix that in a general way – there are also several methods where we want to explicitly convert to `numpy` (e.g. when plotting), but without using `numpy.asarray` since that is commonly used to ensure objects are array-like.
Ideally, to make those work we'd have a standard on how to explicitly get the data of a duck array as a `numpy` array (`obj.to_numpy()`?). Right now, we have several: for `sparse` it is named `dense()` (or something like that), for `cupy` it is `get()`, and for `pint` we have the `magnitude` property (and I'm sure there are many more).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,654135405
https://github.com/pydata/xarray/issues/4212#issuecomment-656222718,https://api.github.com/repos/pydata/xarray/issues/4212,656222718,MDEyOklzc3VlQ29tbWVudDY1NjIyMjcxOA==,13301940,2020-07-09T16:19:58Z,2020-07-09T16:19:58Z,MEMBER,"@jacobtomlinson, thank you for getting this started. I'll be monitoring closely this issue. Let me know if I can help in any way.
","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,654135405