From 0d27bc2bd448aab67c63777daa03ea42456eb230 Mon Sep 17 00:00:00 2001 From: TomNicholas Date: Mon, 4 Mar 2024 11:14:00 -0500 Subject: [PATCH 1/2] update imports to look in namedarray module --- cubed_xarray/cubedmanager.py | 4 ++-- cubed_xarray/tests/test_wrapping.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cubed_xarray/cubedmanager.py b/cubed_xarray/cubedmanager.py index 9ad0735..a99ced5 100644 --- a/cubed_xarray/cubedmanager.py +++ b/cubed_xarray/cubedmanager.py @@ -12,8 +12,8 @@ from tlz import partition from xarray.core import utils -from xarray.core.parallelcompat import ChunkManagerEntrypoint -from xarray.core.pycompat import is_chunked_array, is_duck_dask_array +from xarray.namedarray.parallelcompat import ChunkManagerEntrypoint +from xarray.namedarray.pycompat import is_chunked_array, is_duck_dask_array if TYPE_CHECKING: diff --git a/cubed_xarray/tests/test_wrapping.py b/cubed_xarray/tests/test_wrapping.py index 00cbed9..d1b2a0d 100644 --- a/cubed_xarray/tests/test_wrapping.py +++ b/cubed_xarray/tests/test_wrapping.py @@ -1,5 +1,5 @@ import xarray as xr -from xarray.core.parallelcompat import list_chunkmanagers +from xarray.namedarray.parallelcompat import list_chunkmanagers import cubed from cubed_xarray.cubedmanager import CubedManager From 0a790aa075fb45234d342bd84eaa1996f688abe3 Mon Sep 17 00:00:00 2001 From: TomNicholas Date: Mon, 4 Mar 2024 11:14:14 -0500 Subject: [PATCH 2/2] requires most recent version of xarray --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c14e3d7..1a97624 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ cubed>=0.6.0 numpy>=1.17.1 -xarray>=2023.03.0 \ No newline at end of file +xarray>=2024.02.0 \ No newline at end of file