home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 554585004

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/1739#issuecomment-554585004 https://api.github.com/repos/pydata/xarray/issues/1739 554585004 MDEyOklzc3VlQ29tbWVudDU1NDU4NTAwNA== 1217238 2019-11-16T00:50:57Z 2019-11-16T00:50:57Z MEMBER

Consistent dimension ordering is usually a best practice, but I'm not sure we want to enforce it. If a user explicitly supplies two variables, with dimensions ('x', 'y') and ('y', 'x'), respectively, we would either have to raise an error or automatically transpose the second variable. Neither option sounds great to me.

As for the current order in ds.dims, right now we use sorted order. Mostly this is because I didn't want to need to use an OrderedDict for keeping track of dimensions on datasets, and until recently Python dict order was entirely arbitrary. Perhaps this could be relaxed now that Python's dict always preserves the order in which items are added.

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