Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexing.rst edits #4

Merged

Conversation

shoyer
Copy link

@shoyer shoyer commented Sep 11, 2017

No description provided.

Copy link
Owner

@fujiisoup fujiisoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for improving the doc. This is much smoother and more natural :)

doc/indexing.rst Outdated

.. note::

+ There should not be a conflict between the coordinates of indexer- and indexed- DataArrays. In v.0.10.0, xarray raises ``FutureWarning`` if there is such a conflict, but in the next major release, it will raise an Error.
- ``IndexError`` is raised if there is a conflict between dimension
coordinates of indexer- and indexed- DataArrays.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we raise IndexError for coordinate conflict?
The current code just neglects the conflicted coordinates.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we do want to raise an error here, but as you note this is not the case currently. Let's discuss this over in the main issue (where I also just raised this concern)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this line for now. Let's add it back in later when we settle on how it should work.

@fujiisoup fujiisoup merged commit 8608451 into fujiisoup:indexing_broadcasting Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants