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

Conditionally skip testing the Gridded data user guide #1383

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion doc/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import dask
from importlib.util import find_spec

import dask

from packaging.version import Version
from bokeh.io.webdriver import webdriver_control


collect_ignore_glob = [
'user_guide/Streaming.ipynb',
]
Expand Down Expand Up @@ -45,3 +49,19 @@
# From Dask 2024.3.0 they now use `dask_expr` by default
# https://github.com/dask/dask/issues/10995
dask.config.set({'dataframe.query-planning': False})


# https://github.com/pydata/xarray/pull/9182
try:
import xarray as xr
except ImportError:
pass
else:
import numpy as np

if Version(np.__version__) >= Version('2.0.0') and Version(xr.__version__) <= Version(
'2024.6.0'
):
collect_ignore_glob += [
'user_guide/Gridded_Data.ipynb',
]
Loading