Skip to content
forked from pydata/xarray

Commit

Permalink
Merge branch 'main' into groupby-shuffle
Browse files Browse the repository at this point in the history
* main:
  Turn off survey banner (pydata#9512)
  Stateful test: silence DeprecationWarning from drop_dims (pydata#9508)
  • Loading branch information
dcherian committed Sep 18, 2024
2 parents 7dc5dd1 + 9cb9958 commit bad0744
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
Theme by the <a href="https://ebp.jupyterbook.org">Executable Book Project</a></p>""",
twitter_url="https://twitter.com/xarray_dev",
icon_links=[], # workaround for pydata/pydata-sphinx-theme#1220
announcement="<a href='https://forms.gle/KEq7WviCdz9xTaJX6'>Xarray's 2024 User Survey is live now. Please take ~5 minutes to fill it out and help us improve Xarray.</a>",
# announcement="<a href='https://forms.gle/KEq7WviCdz9xTaJX6'>Xarray's 2024 User Survey is live now. Please take ~5 minutes to fill it out and help us improve Xarray.</a>",
)


Expand Down
6 changes: 5 additions & 1 deletion properties/test_index_manipulation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import itertools
import warnings

import numpy as np
import pytest
Expand Down Expand Up @@ -184,7 +185,10 @@ def drop_dims(self, data):
)
)
note(f"> drop_dims: {dims}")
self.dataset = self.dataset.drop_dims(dims)
# TODO: dropping a multi-index dimension raises a DeprecationWarning
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=DeprecationWarning)
self.dataset = self.dataset.drop_dims(dims)

for dim in dims:
if dim in self.indexed_dims:
Expand Down

0 comments on commit bad0744

Please sign in to comment.