From b6e01491541be45ae40990e818811882f5364a2a Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 23 Jun 2024 20:03:07 -0700 Subject: [PATCH 1/2] Include numbagg in type checks --- pyproject.toml | 4 +--- xarray/tests/test_plot.py | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index db64d7a18c5..2081f7f87bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,7 +118,6 @@ module = [ "matplotlib.*", "mpl_toolkits.*", "nc_time_axis.*", - "numbagg.*", "netCDF4.*", "netcdftime.*", "opt_einsum.*", @@ -329,8 +328,7 @@ filterwarnings = [ "default:the `pandas.MultiIndex` object:FutureWarning:xarray.tests.test_variable", "default:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning", "default:Duplicate dimension names present:UserWarning:xarray.namedarray.core", - "default:::xarray.tests.test_strategies", - # TODO: remove once we know how to deal with a changed signature in protocols + "default:::xarray.tests.test_strategies", # TODO: remove once we know how to deal with a changed signature in protocols "ignore:__array__ implementation doesn't accept a copy keyword, so passing copy=False failed.", ] diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index a44b621a981..5cdd164378e 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -3406,3 +3406,10 @@ def test_plot1d_filtered_nulls() -> None: actual = pc.get_offsets().shape[0] assert expected == actual + + +import matplotlib.pyplot as plt + +data = xr.DataArray([1, 2, 3], dims=["x"]) +fig, ax = plt.subplots(ncols=1, nrows=1) +data.plot(ax=ax) From cbfaa1be5fd852ed9508c76d4cb3645670684dd1 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 23 Jun 2024 20:18:33 -0700 Subject: [PATCH 2/2] --- xarray/tests/test_plot.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index 5cdd164378e..a44b621a981 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -3406,10 +3406,3 @@ def test_plot1d_filtered_nulls() -> None: actual = pc.get_offsets().shape[0] assert expected == actual - - -import matplotlib.pyplot as plt - -data = xr.DataArray([1, 2, 3], dims=["x"]) -fig, ax = plt.subplots(ncols=1, nrows=1) -data.plot(ax=ax)