-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tolerance is not working #11
Comments
I suggest we change the API here and drop the tolerance keyword, but allow for requesting the distances along with the selected data so that One could argue that |
The reason why I think allowing for |
Ah good catch. I agree that returning distances as a coordinate (or data variable?) is useful. I'm not a big fan of methods returning new variables with hard-coded names, so I would rather lean towards That said, I think that supporting a |
I like this.
This is also a good solution.
IMO, dropping should be up to the user. Otherwise, it's not easy to tell which points of the indexer were / weren't used. |
Agreed. A. Another keyword argument Option A might be confusing, as there is already a It might be worth to try xarray advanced indexing, i.e., |
Ah I could have read your comment above more carefully:
Agreed. I think that this behavior will eventually need to be addressed in xarray, at least for point-wise indexing. It occurs to me too that returning elements with missing value seems more useful than raising a KeyError. |
This https://github.com/ESM-VFC/xoak/blob/53a877582077fe076e35d13df6925167ef839a4c/tests/test_catesian_coords_random_data.py#L65 fails because currently, https://github.com/ESM-VFC/xoak/blob/ffa933406461256eced4a4bc776e098147b5045f/src/xoak/core.py#L95 modifies the size of the index array.
The text was updated successfully, but these errors were encountered: