home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 324211409

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
324211409 MDExOlB1bGxSZXF1ZXN0MTg4ODgwNTgx 2155 Validate output dimension sizes with apply_ufunc 1217238 closed 0     1 2018-05-17T22:44:46Z 2018-05-31T15:41:41Z 2018-05-31T15:40:04Z MEMBER   0 pydata/xarray/pulls/2155

Fixes #1931

Uses of apply_ufunc that change dimension size now raise an explicit error, e.g.,

>>> xr.apply_ufunc(lambda x: x[:5], xr.Variable('x', np.arange(10)))
ValueError: size of dimension 'x' on inputs was unexpectedly changed by
applied function from 10 to 5. Only dimensions specified in ``exclude_dims``
with xarray.apply_ufunc are allowed to change size.
  • [x] Closes #1931 (remove if there is no corresponding issue, which should only be the case for minor changes)
  • [x] Tests added (for all bug fixes or enhancements)
  • [x] Tests passed (for all non-documentation changes)
  • [x] Fully documented, including whats-new.rst for all changes and api.rst for new API (remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later)
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2155/reactions",
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.684ms · About: xarray-datasette