home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 217287113

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
217287113 MDExOlB1bGxSZXF1ZXN0MTEyNzc0NzE0 1330 If join='exact', raise an error for non-aligned objects 1217238 closed 0     9 2017-03-27T15:37:55Z 2017-05-31T01:09:14Z 2017-05-31T01:08:45Z MEMBER   0 pydata/xarray/pulls/1330

align now supports join='exact', which raises xarray.AlignmentError instead of aligning when indexes to be aligned are not equal.

This is useful for asserting that objects are identical instead of aligning in xarray operations.

For example:

ds1 = xarray.Dataset(coords={'x': [0, 1]})
ds2 = xarray.Dataset(coords={'x': [1, 2]})
xarray.merge([ds1, ds2], join='exact')
# AlignmentError: indexes along dimension 'x' are not equal
  • [x] tests added / passed
  • [x] passes git diff upstream/master | flake8 --diff
  • [x] whatsnew entry
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1330/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
  • 9 rows from issue in issue_comments
Powered by Datasette · Queries took 0.731ms · About: xarray-datasette