home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 388690389

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/2127#issuecomment-388690389 https://api.github.com/repos/pydata/xarray/issues/2127 388690389 MDEyOklzc3VlQ29tbWVudDM4ODY5MDM4OQ== 1217238 2018-05-14T03:59:07Z 2018-05-14T03:59:07Z MEMBER

This must be a NumPy bug. Here's an even simpler reproduction: ``` import numpy as np import datetime

np.array([datetime.timedelta(28)], dtype='timedelta64[D]')

TypeError: Cannot cast datetime.timedelta object from metadata [Y] to [D] according to the rule 'same_kind'

```

Any other day I've tried works. Also, the following code works (at least on my laptop): In [113]: np.array([datetime.timedelta(27)], dtype='timedelta64[D]'), np.array([datetime.timedelta(28)], dtype='timedelta64[D]') Out[113]: (array([27], dtype='timedelta64[D]'), array([28], dtype='timedelta64[D]'))

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