home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 78004357

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/367#issuecomment-78004357 https://api.github.com/repos/pydata/xarray/issues/367 78004357 MDEyOklzc3VlQ29tbWVudDc4MDA0MzU3 1217238 2015-03-10T06:54:34Z 2015-03-10T06:54:34Z MEMBER

We could hack around this, but ultimately this is an implication of a design choice I made for the internals of xray.DataArray, which stores its data in an internal xray.Dataset object, using self.name as the key for the variable with the array's data. This means it is currently impossible to have a DataArray with the same name as on of its coordinates but different values.

The real solution here is to do some internal refactoring to make this possible. My current thinking is to add a constant THIS_ARRAY = object() in xray.core.dataarray, and then use THIS_ARRAY instead of self.name in all internal methods that mess with the private dataset that stores the data on DataArray objects.

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