home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 972112384

This data as json

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/5970#issuecomment-972112384 https://api.github.com/repos/pydata/xarray/issues/5970 972112384 IC_kwDOAMm_X8458UIA 2584128 2021-11-17T21:57:28Z 2021-11-17T22:08:03Z NONE

@TomNicholas @keewis ```python import ramba import numpy as np import xarray

ra1 = ramba.random.randn(10,20) xa1 = xarray.DataArray(ra1) np1 = xa1.data.asarray() print("np1:", np1) print("xa1.data:", xa1.data, type(xa1.data), xa1.data.dtype, type(xa1.data.dtype))

xa2 = xa1 + 10.0 xa22 = xa2 * 7.1 xa3 = np.sin(xa22) xa4 = xa3.transpose() xa5 = xa4.sum() print("xa5:", xa5, type(xa5)) ```

Using the __array_function__ API and other functions (and not my ill-conceived PR that added ramba to xarray for direct support) , I was able to run the above example. Originally, there were a couple parts of the NumPy API that ramba didn't previously support and I added those. The most difficult of those was 0d arrays. Those are working at least well enough now for the above example so now like I said in the meeting, I'd like even more complicated examples to explore.

Can anybody suggest or provide one?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1050082867
Powered by Datasette · Queries took 1.761ms · About: xarray-datasette