home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 806154872

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-806154872 https://api.github.com/repos/pydata/xarray/issues/5065 806154872 MDEyOklzc3VlQ29tbWVudDgwNjE1NDg3Mg== 1217238 2021-03-24T20:10:19Z 2021-03-24T20:10:19Z MEMBER

I'm a little conflicted about dealing with encoding['chunks'] specifically in chunk():

  • On one hand, it feels inconsistent for this only this single method in xarray to modify part of encoding. Nothing else in xarray (after CF decoding) does this. Effectively encoding['chunks'] is now becoming a part of xarray's data model.
  • On the other hand, this would absolutely fix a recurrent pain-point for users, and in that sense it's worth doing.

Maybe this isn't such a big deal in this particular case, especially if we don't think we would need to add such encoding specific logic to any other methods. But are we really sure about that -- what about cases like indexing?

I guess the other alternative to make chunk() and various other methods that would change chunking drop encoding entirely. I don't know if this would really be a better comprehensive solution (I know dropping attrs is much hated), but at least it's an easier mental model.

{
    "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.614ms · About: xarray-datasette