home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 282070342

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/988#issuecomment-282070342 https://api.github.com/repos/pydata/xarray/issues/988 282070342 MDEyOklzc3VlQ29tbWVudDI4MjA3MDM0Mg== 500246 2017-02-23T18:00:32Z 2017-02-23T18:00:46Z CONTRIBUTOR

Apparently __numpy_ufunc__ is too new for xarray, but it would appear that adding the right code to __array_wrap__ should work, i.e. if a units attribute is present and units are enabled through pint, evaluate something like new_var.attrs["units"] = context[0](1*ureg(self.attrs["units"])).u.

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