issues: 511477827
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
511477827 | MDU6SXNzdWU1MTE0Nzc4Mjc= | 3437 | Request error handling in dataarray construction | 3274 | open | 0 | 4 | 2019-10-23T17:48:11Z | 2020-01-08T21:14:27Z | CONTRIBUTOR | When I have a bad dimension in an xarray I get this error:
Expected Outputwhat I would like to see is
The improvement I am asking for is here: https://github.com/pydata/xarray/blob/c8dac5866d2c54ee6b262b5060a701e0be1e40cb/xarray/core/dataarray.py#L368-L371 What I claim would be an improvement would be something like this:
I'm not an expert on python exception handling, so this is probably wrong. Problem DescriptionThe programmer cannot tell what variable causes the shape and dimension issue. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3437/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |