home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 348536270

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
348536270 MDExOlB1bGxSZXF1ZXN0MjA2ODY0NzU4 2353 Raises a ValueError for a confliction between dimension names and level names 6815844 closed 0     0 2018-08-08T00:52:29Z 2018-08-13T22:16:36Z 2018-08-13T22:16:31Z MEMBER   0 pydata/xarray/pulls/2353
  • [x] Closes #2299
  • [x] Tests added
  • [x] Tests passed
  • [x] Fully documented, including whats-new.rst for all changes and api.rst for new API.

Now it raises an Error to assign new dimension with the name conflicting with an existing level name. Therefore, it is not allowed ```python b = xr.Dataset(coords={'dim0': ['a', 'b'], 'dim1': [0, 1]}) b = b.stack(dim_stacked=['dim0', 'dim1'])

This should raise an errors even though its length is consistent with b['dim0']

b['c'] = (('dim0',), [10, 11, 12, 13])

This is OK

b['c'] = (('dim_stacked',), [10, 11, 12, 13]) ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2353/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 3.165ms · About: xarray-datasette