issues: 199816142
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
199816142 | MDU6SXNzdWUxOTk4MTYxNDI= | 1197 | Problem with creating coords by dict | 25030860 | closed | 0 | 7 | 2017-01-10T13:05:25Z | 2017-08-31T19:17:29Z | 2017-08-31T19:17:29Z | NONE | IMO there's a problem with using dicts as coords definition for DataArrays.
E.g. an array defined by
The error message is
As far as I can imagine this is because dicts don't preserve order in python.
At least printing the coords shows a different order than used in the definition of Using an ordered dict turns out to work:
Both lead to
Detected in WinPython-64bit-3.4.4.1Qt5 with xarray version 0.7.0 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1197/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |