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

MAINT: do not rename 'time' if already 'time' #1164

Open
jklenzing opened this issue Dec 5, 2023 · 0 comments
Open

MAINT: do not rename 'time' if already 'time' #1164

jklenzing opened this issue Dec 5, 2023 · 0 comments
Assignees
Milestone

Comments

@jklenzing
Copy link
Member

Describe the bug
Need to skip 'time' when renaming indices in remove_leading_text. xarray will throw a warning. Harmless behaviour, but unecessary.

pysat/instruments/methods/general.py:178: UserWarning: rename 'time' to 'time' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
@jklenzing jklenzing added this to the 3.3.0 Release milestone Jan 31, 2024
@jklenzing jklenzing self-assigned this Apr 4, 2024
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

No branches or pull requests

1 participant