home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 152105174

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/630#issuecomment-152105174 https://api.github.com/repos/pydata/xarray/issues/630 152105174 MDEyOklzc3VlQ29tbWVudDE1MjEwNTE3NA== 1322974 2015-10-29T07:49:23Z 2015-10-29T07:49:23Z CONTRIBUTOR

Sorry to raise the issue again but I just noticed that I had a couple of other places where I wrote quite naturally

d = DataArray(...) e = DataArray(...) ds = Dataset({"d": d, "e": e}) <work to initialize d and e>

which is equivalent to the form I was mentioning earlier (whether ds will actually get initialized properly depends on whether d and e have exactly matching coordinates).

To be honest I don't really understand what you mean by "Unfortunately, it's impossible to make such automatically aligned arrays views in general, because of numpy's memory model.": when the line ds = Dataset(...) gets executed, the ndarrays ds.d.values and ds.e.values either point to the old ndarrays d.values and e.values or to some newly created, coordinate-aligned ndarrays. If it is the latter, one can just modify d.values and e.values (as well as their coordinates systems) to point to the new ndarrays, right?

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