Skip to content

Expose top-level xarray.indexes in __init__ #10435

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dcherian
Copy link
Contributor

Also expose CoordinateTransformIndex

Closes #10424

Also expose CoordinateTransformIndex

Closes pydata#10424
@@ -1,6 +1,6 @@
from importlib.metadata import version as _version

from xarray import coders, groupers, testing, tutorial, ufuncs
from xarray import coders, groupers, indexes, testing, tutorial, ufuncs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this seems like an oversight

@@ -4,10 +4,17 @@
"""

from xarray.core.indexes import (
CoordinateTransformIndex,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@benbovy does this seem OK to you? Would be good for SciPy...

Copy link
Member

Choose a reason for hiding this comment

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

Yes! We should also expose xarray.core.coordinate_transform.CoordinateTransform since we already subclass it externally (not sure in which namespace... indexes as well?).

Copy link
Member

@benbovy benbovy left a comment

Choose a reason for hiding this comment

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

Thanks @dcherian!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose CoordinateTransformIndex and RangeIndex under xarray.indexes
2 participants