home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 736605843

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/4631#issuecomment-736605843 https://api.github.com/repos/pydata/xarray/issues/4631 736605843 MDEyOklzc3VlQ29tbWVudDczNjYwNTg0Mw== 10194086 2020-12-01T14:57:19Z 2020-12-01T14:57:19Z MEMBER

I think it just did np.array([1, 2, 3.]) * [5] numpy coverts the [5] to an array with one element, which is why it worked:

```python xr.coding.variables._scale_offset_decoding(np.array([1, 2, 3.]), [5], None, np.float)

```

https://github.com/pydata/xarray/blob/49d03d246ce657e0cd3be0582334a1a023c4b374/xarray/coding/variables.py#L217

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