home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 663910843

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/4265#issuecomment-663910843 https://api.github.com/repos/pydata/xarray/issues/4265 663910843 MDEyOklzc3VlQ29tbWVudDY2MzkxMDg0Mw== 6628425 2020-07-25T22:06:45Z 2020-07-25T22:11:02Z MEMBER

Thanks for noting this @dcherian; it seems like there may have been a change in NumPy that caused this. E.g. with NumPy master this doesn't work: ```python

import numpy as np np.version '1.20.0.dev0+2d12d0c' a = np.array([[1., 2.], [3., 4.]]) a[:, 0] = (np.array([0.]), np.array([3650.])) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 1. But with earlier versions of NumPy it does:python import numpy as np np.version '1.19.1' a = np.array([[1., 2.], [3., 4.]]) a[:, 0] = (np.array([0.]), np.array([3650.])) a array([[0.00e+00, 2.00e+00], [3.65e+03, 4.00e+00]]) ``` I'll need to investigate more to see whether this is something to bring up in the matplotlib or NumPy issue tracker (it could be nc-time-axis related too). I'm not sure if there's anything we can do in xarray to fix this. It's probably best to xfail these tests for the time being.

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