home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 806724345

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/pull/5065#issuecomment-806724345 https://api.github.com/repos/pydata/xarray/issues/5065 806724345 MDEyOklzc3VlQ29tbWVudDgwNjcyNDM0NQ== 1197350 2021-03-25T13:17:03Z 2021-03-25T13:17:59Z MEMBER

I see your point. I guess I don't fully understand where else in the code path encoding gets dropped. Consider this example

python import xarray as xr ds = xr.Dataset({'foo': ('time', [1, 1], {'dtype': 'int16'})}) ds = xr.decode_cf(ds).compute() assert "dtype" in ds.foo.encoding assert "dtype" not in (0.5 * ds.foo).encoding

Xarray knows to drop the dtype encoding after an arithmetic operation. How does that work? To me .chunk feel like a similar case: an operation that invalidates any existing encoding.

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