Skip to content

Commit 2f9dfa2

Browse files
committed
switch sample ds load to xr not cf_xr
1 parent 95048a1 commit 2f9dfa2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

yt_xarray/tests/test_xr_to_yt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ def test_reversed_axis(stretched, use_callable, chunksizes):
538538

539539

540540
def test_cf_xarray_disambiguation():
541-
from cf_xarray.datasets import airds
542-
541+
airds = xr.tutorial.open_dataset("air_temperature")
543542
# run the whole selection (will internally run coord disambiguation)
544543
sel = xr2yt.Selection(
545544
airds, fields=["air"], sel_dict={"time": 0}, sel_dict_type="isel"
@@ -554,7 +553,7 @@ def test_cf_xarray_disambiguation():
554553

555554

556555
def test_missing_cfxarray(monkeypatch):
557-
from cf_xarray.datasets import airds
556+
airds = xr.tutorial.open_dataset("air_temperature")
558557

559558
def _bad_import(name, globals=None, locals=None, fromlist=(), level=0):
560559
raise ImportError

0 commit comments

Comments
 (0)