Add support for Array API in NamedArray #152
3 300 errors, 3 605 fail, 636 skipped, 5 395 pass in 33m 56s
Annotations
github-actions / Test Results
All 4 runs with error: xarray.tests.test_backends
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_combine
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_combine.py#x1B[0m:27: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_combine.py#x1B[0m:27: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_combine.py#x1B[0m:27: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_combine.py#x1B[0m:27: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_computation
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_computation.py#x1B[0m:2278: in <module>
xr.DataArray([2, 3, 4], dims="degree", coords={"degree": [0, 1, 2]}),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2], dtype='int64'), dtype=dtype('int64')), dims=('degree',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_computation.py#x1B[0m:2278: in <module>
xr.DataArray([2, 3, 4], dims="degree", coords={"degree": [0, 1, 2]}),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2], dtype='int64'), dtype=dtype('int64')), dims=('degree',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_computation.py#x1B[0m:2278: in <module>
xr.DataArray([2, 3, 4], dims="degree", coords={"degree": [0, 1, 2]}),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2], dtype='int64'), dtype=dtype('int64')), dims=('degree',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_computation.py#x1B[0m:2278: in <module>
xr.DataArray([2, 3, 4], dims="degree", coords={"degree": [0, 1, 2]}),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2], dtype='int64'), dtype=dtype('int64')), dims=('degree',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_concat
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_concat.py#x1B[0m:24: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_concat.py#x1B[0m:24: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_concat.py#x1B[0m:24: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_concat.py#x1B[0m:24: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_conventions
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_conventions.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import CFEncodedBase
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_conventions.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import CFEncodedBase
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_conventions.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import CFEncodedBase
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_conventions.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import CFEncodedBase
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_dask
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_dask.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import create_tmp_file
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dask.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import create_tmp_file
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dask.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import create_tmp_file
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dask.py#x1B[0m:29: in <module>
from xarray.tests.test_backends import create_tmp_file
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_dataarray
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:76: in <module>
class TestDataArray:
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:3114: in TestDataArray
DataArray([1], [("x", [1])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:76: in <module>
class TestDataArray:
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:3114: in TestDataArray
DataArray([1], [("x", [1])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:76: in <module>
class TestDataArray:
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:3114: in TestDataArray
DataArray([1], [("x", [1])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:76: in <module>
class TestDataArray:
#x1B[1m#x1B[31mxarray/tests/test_dataarray.py#x1B[0m:3114: in TestDataArray
DataArray([1], [("x", [1])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_dataset
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
3 out of 4 runs with error: xarray.tests.test_distributed
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_distributed.py#x1B[0m:42: in <module>
from xarray.tests.test_backends import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_distributed.py#x1B[0m:42: in <module>
from xarray.tests.test_backends import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_distributed.py#x1B[0m:42: in <module>
from xarray.tests.test_backends import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_distributed.py#x1B[0m:42: in <module>
from xarray.tests.test_backends import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_backends.py#x1B[0m:89: in <module>
from xarray.tests.test_dataset import (
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_groupby
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_groupby.py#x1B[0m:198: in <module>
xr.DataArray([1, 2, 3, 4, 5, 6], [("x", [1, 1, 1, 2, 2, 2])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 1, 1, 2, 2, 2], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_groupby.py#x1B[0m:198: in <module>
xr.DataArray([1, 2, 3, 4, 5, 6], [("x", [1, 1, 1, 2, 2, 2])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 1, 1, 2, 2, 2], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_groupby.py#x1B[0m:198: in <module>
xr.DataArray([1, 2, 3, 4, 5, 6], [("x", [1, 1, 1, 2, 2, 2])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 1, 1, 2, 2, 2], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_groupby.py#x1B[0m:198: in <module>
xr.DataArray([1, 2, 3, 4, 5, 6], [("x", [1, 1, 1, 2, 2, 2])]),
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 1, 1, 2, 2, 2], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_interp
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_interp.py#x1B[0m:23: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_interp.py#x1B[0m:23: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_interp.py#x1B[0m:23: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_interp.py#x1B[0m:23: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_merge
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_merge.py#x1B[0m:10: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_merge.py#x1B[0m:10: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_merge.py#x1B[0m:10: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_merge.py#x1B[0m:10: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
All 4 runs with error: xarray.tests.test_options
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_options.py#x1B[0m:9: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_options.py#x1B[0m:9: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_options.py#x1B[0m:9: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_options.py#x1B[0m:9: in <module>
from xarray.tests.test_dataset import create_test_data
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#x1B[0m:174: in exec_module
exec(co, module.__dict__)
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:280: in <module>
class TestDataset:
#x1B[1m#x1B[31mxarray/tests/test_dataset.py#x1B[0m:2987: in TestDataset
xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:477: in __init__
variable = Variable(dims, data, attrs, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([1, 2], dtype='int64'), dtype=dtype('int64')), dims=('a',)#x1B[0m
github-actions / Test Results
3 out of 4 runs with error: xarray.tests.test_sparse
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
collection failure
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:354: in <module>
(do("assign_coords", x=make_xrarray({"x": 10}).x + 1), True),
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:47: in make_xrarray
return xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:354: in <module>
(do("assign_coords", x=make_xrarray({"x": 10}).x + 1), True),
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:47: in make_xrarray
return xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:354: in <module>
(do("assign_coords", x=make_xrarray({"x": 10}).x + 1), True),
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:47: in make_xrarray
return xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:354: in <module>
(do("assign_coords", x=make_xrarray({"x": 10}).x + 1), True),
#x1B[1m#x1B[31mxarray/tests/test_sparse.py#x1B[0m:47: in make_xrarray
return xr.DataArray(
#x1B[1m#x1B[31mxarray/core/dataarray.py#x1B[0m:480: in __init__
coords = create_coords_with_default_indexes(coords)
#x1B[1m#x1B[31mxarray/core/coordinates.py#x1B[0m:1001: in create_coords_with_default_indexes
variable = as_variable(obj, name=name, auto_convert=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:130: in as_variable
obj = obj.copy(deep=False)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2781: in copy
return self._replace(data=ndata, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:959: in _replace
return type(self)(dims, data, attrs, encoding, fastpath=True)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31mxarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
#x1B[1m#x1B[31mxarray/namedarray/core.py#x1B[0m:267: in __init__
raise NotImplementedError(
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64'), dtype=dtype('int64')), dims=('x',)#x1B[0m
Check warning on line 0 in xarray.tests.test_tutorial.TestLoadDataset
github-actions / Test Results
1 out of 4 runs failed: test_download_from_github (xarray.tests.test_tutorial.TestLoadDataset)
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
Raw output
NotImplementedError: data is not a valid duckarray, got data=LazilyIndexedArray(array=<xarray.backends.netCDF4_.NetCDF4ArrayWrapper object at 0x7f128e18a800>, key=BasicIndexer((slice(None, None, None),))), dims=('dim_0',)
self = <xarray.tests.test_tutorial.TestLoadDataset object at 0x7f12915e5280>
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/popen-gw1/test_download_from_github0')
def test_download_from_github(self, tmp_path) -> None:
cache_dir = tmp_path / tutorial._default_cache_dir_name
> ds = tutorial.open_dataset(self.testfile, cache_dir=cache_dir).load()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_tutorial.py#x1B[0m:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tutorial.py#x1B[0m:162: in open_dataset
ds = _open_dataset(filepath, engine=engine, **kws)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/api.py#x1B[0m:594: in open_dataset
backend_ds = backend.open_dataset(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:659: in open_dataset
ds = store_entrypoint.open_dataset(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/store.py#x1B[0m:43: in open_dataset
vars, attrs = filename_or_obj.load()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/common.py#x1B[0m:222: in load
(_decode_variable_name(k), v) for k, v in self.get_variables().items()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:461: in get_variables
return FrozenDict(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/utils.py#x1B[0m:415: in FrozenDict
return Frozen(dict(*args, **kwargs))
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:462: in <genexpr>
(k, self.open_store_variable(k, v)) for k, v in self.ds.variables.items()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:458: in open_store_variable
return Variable(dimensions, data, attributes, encoding)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x7f128d9164a0>
dims = ('dim_0',)
data = LazilyIndexedArray(array=<xarray.backends.netCDF4_.NetCDF4ArrayWrapper object at 0x7f128e18a800>, key=BasicIndexer((slice(None, None, None),)))
attrs = {}
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=LazilyIndexedArray(array=<xarray.backends.netCDF4_.NetCDF4ArrayWrapper object at 0x7f128e18a800>, key=BasicIndexer((slice(None, None, None),))), dims=('dim_0',)#x1B[0m
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check warning on line 0 in xarray.tests.test_tutorial.TestLoadDataset
github-actions / Test Results
1 out of 4 runs failed: test_download_from_github_load_without_cache (xarray.tests.test_tutorial.TestLoadDataset)
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
Raw output
NotImplementedError: data is not a valid duckarray, got data=LazilyIndexedArray(array=<xarray.backends.netCDF4_.NetCDF4ArrayWrapper object at 0x7fab68b1b500>, key=BasicIndexer((slice(None, None, None),))), dims=('dim_0',)
self = <xarray.tests.test_tutorial.TestLoadDataset object at 0x7fab6999a300>
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/popen-gw3/test_download_from_github_load0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fab6dd3e7b0>
def test_download_from_github_load_without_cache(
self, tmp_path, monkeypatch
) -> None:
cache_dir = tmp_path / tutorial._default_cache_dir_name
> ds_nocache = tutorial.open_dataset(
self.testfile, cache=False, cache_dir=cache_dir
).load()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_tutorial.py#x1B[0m:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tutorial.py#x1B[0m:162: in open_dataset
ds = _open_dataset(filepath, engine=engine, **kws)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/api.py#x1B[0m:594: in open_dataset
backend_ds = backend.open_dataset(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:659: in open_dataset
ds = store_entrypoint.open_dataset(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/store.py#x1B[0m:43: in open_dataset
vars, attrs = filename_or_obj.load()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/common.py#x1B[0m:222: in load
(_decode_variable_name(k), v) for k, v in self.get_variables().items()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:461: in get_variables
return FrozenDict(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/utils.py#x1B[0m:415: in FrozenDict
return Frozen(dict(*args, **kwargs))
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:462: in <genexpr>
(k, self.open_store_variable(k, v)) for k, v in self.ds.variables.items()
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/backends/netCDF4_.py#x1B[0m:458: in open_store_variable
return Variable(dimensions, data, attributes, encoding)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x7fab68822140>
dims = ('dim_0',)
data = LazilyIndexedArray(array=<xarray.backends.netCDF4_.NetCDF4ArrayWrapper object at 0x7fab68b1b500>, key=BasicIndexer((slice(None, None, None),)))
attrs = {}
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=LazilyIndexedArray(array=<xarray.backends.netCDF4_.NetCDF4ArrayWrapper object at 0x7fab68b1b500>, key=BasicIndexer((slice(None, None, None),))), dims=('dim_0',)#x1B[0m
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check warning on line 0 in xarray.tests.test_backends_datatree.TestZarrDatatreeIO
github-actions / Test Results
2 out of 3 runs failed: test_to_zarr_inherited_coords (xarray.tests.test_backends_datatree.TestZarrDatatreeIO)
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([3, 4], dtype='int64', name='x'), dtype=dtype('int64')), dims='x'
self = <xarray.tests.test_backends_datatree.TestZarrDatatreeIO object at 0x148b02290>
tmpdir = local('/private/var/folders/4d/0gnh84wj53j7wyk695q0tc_80000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_to_zarr_inherited_coords0')
def test_to_zarr_inherited_coords(self, tmpdir):
original_dt = DataTree.from_dict(
{
> "/": xr.Dataset({"a": (("x",), [1, 2])}, coords={"x": [3, 4]}),
"/sub": xr.Dataset({"b": (("x",), [5, 6])}),
}
)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/tests/test_backends_datatree.py#x1B[0m:297:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataset.py#x1B[0m:715: in __init__
variables, coord_names, dims, indexes, _ = merge_data_and_coords(
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataset.py#x1B[0m:425: in merge_data_and_coords
coords = create_coords_with_default_indexes(coords, data_vars)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/coordinates.py#x1B[0m:1007: in create_coords_with_default_indexes
idx, idx_vars = create_default_index_implicit(variable, all_variables)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/indexes.py#x1B[0m:1416: in create_default_index_implicit
index_vars = index.create_variables(dim_var)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/indexes.py#x1B[0m:721: in create_variables
var = IndexVariable(self.dim, data, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'IndexVariable' object has no attribute '_data'") raised in repr()] IndexVariable object at 0x14f4ae620>
dims = 'x'
data = PandasIndexingAdapter(array=Index([3, 4], dtype='int64', name='x'), dtype=dtype('int64'))
attrs = {}
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([3, 4], dtype='int64', name='x'), dtype=dtype('int64')), dims='x'#x1B[0m
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check failure on line 0 in xarray.tests.test_coarsen
github-actions / Test Results
2 out of 3 runs with error: test_coarsen_da_reduce[dask-max-3-1] (xarray.tests.test_coarsen)
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
failed on setup with "NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04',
'2000-01-05', '2000-01-06', '2000-01-07', '2000-01-08',
'2000-01-09', '2000-01-10', '2000-01-11', '2000-01-12',
'2000-01-13', '2000-01-14', '2000-01-15', '2000-01-16',
'2000-01-17', '2000-01-18', '2000-01-19', '2000-01-20',
'2000-01-21'],
dtype='datetime64[ns]', freq='D'), dtype=dtype('<M8[ns]')), dims='time'"
request = <SubRequest 'da' for <Function test_coarsen_da_reduce[dask-max-3-1]>>
backend = 'dask'
@pytest.fixture(params=[1])
def da(request, backend):
if request.param == 1:
times = pd.date_range("2000-01-01", freq="1D", periods=21)
> da = DataArray(
np.random.random((3, 21, 4)),
dims=("a", "time", "x"),
coords=dict(time=times),
)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/tests/conftest.py#x1B[0m:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:476: in __init__
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:198: in _infer_coords_and_dims
new_coords[k] = as_variable(v, name=k, auto_convert=False)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:163: in as_variable
obj = Variable(name, data, fastpath=True)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x12cd7a920>
dims = 'time'
data = PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04',
'200...', '2000-01-20',
'2000-01-21'],
dtype='datetime64[ns]', freq='D'), dtype=dtype('<M8[ns]'))
attrs = None
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-05', '2000-01-06', '2000-01-07', '2000-01-08',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-09', '2000-01-10', '2000-01-11', '2000-01-12',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-13', '2000-01-14', '2000-01-15', '2000-01-16',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-17', '2000-01-18', '2000-01-19', '2000-01-20',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-21'],#x1B[0m
#x1B[1m#x1B[31mE dtype='datetime64[ns]', freq='D'), dtype=dtype('<M8[ns]')), dims='time'#x1B[0m
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check failure on line 0 in xarray.tests.test_coarsen
github-actions / Test Results
2 out of 3 runs with error: test_coarsen_da_reduce[dask-max-4-1] (xarray.tests.test_coarsen)
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
failed on setup with "NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04',
'2000-01-05', '2000-01-06', '2000-01-07', '2000-01-08',
'2000-01-09', '2000-01-10', '2000-01-11', '2000-01-12',
'2000-01-13', '2000-01-14', '2000-01-15', '2000-01-16',
'2000-01-17', '2000-01-18', '2000-01-19', '2000-01-20',
'2000-01-21'],
dtype='datetime64[ns]', freq='D'), dtype=dtype('<M8[ns]')), dims='time'"
request = <SubRequest 'da' for <Function test_coarsen_da_reduce[dask-max-4-1]>>
backend = 'dask'
@pytest.fixture(params=[1])
def da(request, backend):
if request.param == 1:
times = pd.date_range("2000-01-01", freq="1D", periods=21)
> da = DataArray(
np.random.random((3, 21, 4)),
dims=("a", "time", "x"),
coords=dict(time=times),
)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/tests/conftest.py#x1B[0m:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:476: in __init__
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:198: in _infer_coords_and_dims
new_coords[k] = as_variable(v, name=k, auto_convert=False)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:163: in as_variable
obj = Variable(name, data, fastpath=True)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x12cd7bc40>
dims = 'time'
data = PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04',
'200...', '2000-01-20',
'2000-01-21'],
dtype='datetime64[ns]', freq='D'), dtype=dtype('<M8[ns]'))
attrs = None
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-05', '2000-01-06', '2000-01-07', '2000-01-08',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-09', '2000-01-10', '2000-01-11', '2000-01-12',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-13', '2000-01-14', '2000-01-15', '2000-01-16',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-17', '2000-01-18', '2000-01-19', '2000-01-20',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-21'],#x1B[0m
#x1B[1m#x1B[31mE dtype='datetime64[ns]', freq='D'), dtype=dtype('<M8[ns]')), dims='time'#x1B[0m
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check warning on line 0 in xarray.tests.test_coarsen.TestCoarsenConstruct
github-actions / Test Results
All 3 runs failed: test_coarsen_construct[True] (xarray.tests.test_coarsen.TestCoarsenConstruct)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47],
dtype='int64', name='time'), dtype=dtype('int64')), dims='time'
self = <xarray.tests.test_coarsen.TestCoarsenConstruct object at 0x7f0b38287610>
dask = True
@pytest.mark.parametrize("dask", [True, False])
def test_coarsen_construct(self, dask: bool) -> None:
> ds = Dataset(
{
"vart": ("time", np.arange(48), {"a": "b"}),
"varx": ("x", np.arange(10), {"a": "b"}),
"vartx": (("x", "time"), np.arange(480).reshape(10, 48), {"a": "b"}),
"vary": ("y", np.arange(12)),
},
coords={"time": np.arange(48), "y": np.arange(12)},
attrs={"foo": "bar"},
)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_coarsen.py#x1B[0m:259:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataset.py#x1B[0m:715: in __init__
variables, coord_names, dims, indexes, _ = merge_data_and_coords(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataset.py#x1B[0m:425: in merge_data_and_coords
coords = create_coords_with_default_indexes(coords, data_vars)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/coordinates.py#x1B[0m:1007: in create_coords_with_default_indexes
idx, idx_vars = create_default_index_implicit(variable, all_variables)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/indexes.py#x1B[0m:1416: in create_default_index_implicit
index_vars = index.create_variables(dim_var)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/indexes.py#x1B[0m:721: in create_variables
var = IndexVariable(self.dim, data, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'IndexVariable' object has no attribute '_data'") raised in repr()] IndexVariable object at 0x7f0b38e1e9e0>
dims = 'time'
data = PandasIndexingAdapter(array=Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, ...4, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47],
dtype='int64', name='time'), dtype=dtype('int64'))
attrs = {}
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,#x1B[0m
#x1B[1m#x1B[31mE 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,#x1B[0m
#x1B[1m#x1B[31mE 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47],#x1B[0m
#x1B[1m#x1B[31mE dtype='int64', name='time'), dtype=dtype('int64')), dims='time'#x1B[0m
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 3 runs with error: test_field_access[year] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
failed on setup with "NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00',
'2000-01-01 02:00:00', '2000-01-01 03:00:00',
'2000-01-01 04:00:00', '2000-01-01 05:00:00',
'2000-01-01 06:00:00', '2000-01-01 07:00:00',
'2000-01-01 08:00:00', '2000-01-01 09:00:00',
'2000-01-01 10:00:00', '2000-01-01 11:00:00',
'2000-01-01 12:00:00', '2000-01-01 13:00:00',
'2000-01-01 14:00:00', '2000-01-01 15:00:00',
'2000-01-01 16:00:00', '2000-01-01 17:00:00',
'2000-01-01 18:00:00', '2000-01-01 19:00:00',
'2000-01-01 20:00:00', '2000-01-01 21:00:00',
'2000-01-01 22:00:00', '2000-01-01 23:00:00',
'2000-01-02 00:00:00', '2000-01-02 01:00:00',
'2000-01-02 02:00:00', '2000-01-02 03:00:00',
'2000-01-02 04:00:00', '2000-01-02 05:00:00',
'2000-01-02 06:00:00', '2000-01-02 07:00:00',
'2000-01-02 08:00:00', '2000-01-02 09:00:00',
'2000-01-02 10:00:00', '2000-01-02 11:00:00',
'2000-01-02 12:00:00', '2000-01-02 13:00:00',
'2000-01-02 14:00:00', '2000-01-02 15:00:00',
'2000-01-02 16:00:00', '2000-01-02 17:00:00',
'2000-01-02 18:00:00', '2000-01-02 19:00:00',
'2000-01-02 20:00:00', '2000-01-02 21:00:00',
'2000-01-02 22:00:00', '2000-01-02 23:00:00',
'2000-01-03 00:00:00', '2000-01-03 01:00:00',
'2000-01-03 02:00:00', '2000-01-03 03:00:00',
'2000-01-03 04:00:00', '2000-01-03 05:00:00',
'2000-01-03 06:00:00', '2000-01-03 07:00:00',
'2000-01-03 08:00:00', '2000-01-03 09:00:00',
'2000-01-03 10:00:00', '2000-01-03 11:00:00',
'2000-01-03 12:00:00', '2000-01-03 13:00:00',
'2000-01-03 14:00:00', '2000-01-03 15:00:00',
'2000-01-03 16:00:00', '2000-01-03 17:00:00',
'2000-01-03 18:00:00', '2000-01-03 19:00:00',
'2000-01-03 20:00:00', '2000-01-03 21:00:00',
'2000-01-03 22:00:00', '2000-01-03 23:00:00',
'2000-01-04 00:00:00', '2000-01-04 01:00:00',
'2000-01-04 02:00:00', '2000-01-04 03:00:00',
'2000-01-04 04:00:00', '2000-01-04 05:00:00',
'2000-01-04 06:00:00', '2000-01-04 07:00:00',
'2000-01-04 08:00:00', '2000-01-04 09:00:00',
'2000-01-04 10:00:00', '2000-01-04 11:00:00',
'2000-01-04 12:00:00', '2000-01-04 13:00:00',
'2000-01-04 14:00:00', '2000-01-04 15:00:00',
'2000-01-04 16:00:00', '2000-01-04 17:00:00',
'2000-01-04 18:00:00', '2000-01-04 19:00:00',
'2000-01-04 20:00:00', '2000-01-04 21:00:00',
'2000-01-04 22:00:00', '2000-01-04 23:00:00',
'2000-01-05 00:00:00', '2000-01-05 01:00:00',
'2000-01-05 02:00:00', '2000-01-05 03:00:00'],
dtype='datetime64[ns]', freq='H'), dtype=dtype('<M8[ns]')), dims='time'"
self = <xarray.tests.test_accessor_dt.TestDatetimeAccessor object at 0x7f447e998ee0>
@pytest.fixture(autouse=True)
def setup(self):
nt = 100
data = np.random.rand(10, 10, nt)
lons = np.linspace(0, 11, 10)
lats = np.linspace(0, 20, 10)
self.times = pd.date_range(start="2000/01/01", freq="h", periods=nt)
> self.data = xr.DataArray(
data,
coords=[lons, lats, self.times],
dims=["lon", "lat", "time"],
name="data",
)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_accessor_dt.py#x1B[0m:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:476: in __init__
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:203: in _infer_coords_and_dims
var = as_variable(coord, name=dim, auto_convert=False)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:163: in as_variable
obj = Variable(name, data, fastpath=True)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x7f447b50ebc0>
dims = 'time'
data = PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00',
'2000-01-01 02...'2000-01-05 02:00:00', '2000-01-05 03:00:00'],
dtype='datetime64[ns]', freq='H'), dtype=dtype('<M8[ns]'))
attrs = None
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 02:00:00', '2000-01-01 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 04:00:00', '2000-01-01 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 06:00:00', '2000-01-01 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 08:00:00', '2000-01-01 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 10:00:00', '2000-01-01 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 12:00:00', '2000-01-01 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 14:00:00', '2000-01-01 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 16:00:00', '2000-01-01 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 18:00:00', '2000-01-01 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 20:00:00', '2000-01-01 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 22:00:00', '2000-01-01 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 00:00:00', '2000-01-02 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 02:00:00', '2000-01-02 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 04:00:00', '2000-01-02 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 06:00:00', '2000-01-02 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 08:00:00', '2000-01-02 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 10:00:00', '2000-01-02 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 12:00:00', '2000-01-02 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 14:00:00', '2000-01-02 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 16:00:00', '2000-01-02 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 18:00:00', '2000-01-02 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 20:00:00', '2000-01-02 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 22:00:00', '2000-01-02 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 00:00:00', '2000-01-03 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 02:00:00', '2000-01-03 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 04:00:00', '2000-01-03 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 06:00:00', '2000-01-03 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 08:00:00', '2000-01-03 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 10:00:00', '2000-01-03 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 12:00:00', '2000-01-03 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 14:00:00', '2000-01-03 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 16:00:00', '2000-01-03 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 18:00:00', '2000-01-03 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 20:00:00', '2000-01-03 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 22:00:00', '2000-01-03 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 00:00:00', '2000-01-04 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 02:00:00', '2000-01-04 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 04:00:00', '2000-01-04 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 06:00:00', '2000-01-04 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 08:00:00', '2000-01-04 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 10:00:00', '2000-01-04 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 12:00:00', '2000-01-04 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 14:00:00', '2000-01-04 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 16:00:00', '2000-01-04 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 18:00:00', '2000-01-04 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 20:00:00', '2000-01-04 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 22:00:00', '2000-01-04 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-05 00:00:00', '2000-01-05 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-05 02:00:00', '2000-01-05 03:00:00'],#x1B[0m
#x1B[1m#x1B[31mE dtype='datetime64[ns]', freq='H'), dtype=dtype('<M8[ns]')), dims='time'#x1B[0m
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check warning on line 0 in xarray.tests.test_coarsen.TestCoarsenConstruct
github-actions / Test Results
All 3 runs failed: test_coarsen_construct[False] (xarray.tests.test_coarsen.TestCoarsenConstruct)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47],
dtype='int64', name='time'), dtype=dtype('int64')), dims='time'
self = <xarray.tests.test_coarsen.TestCoarsenConstruct object at 0x7f0b38286320>
dask = False
@pytest.mark.parametrize("dask", [True, False])
def test_coarsen_construct(self, dask: bool) -> None:
> ds = Dataset(
{
"vart": ("time", np.arange(48), {"a": "b"}),
"varx": ("x", np.arange(10), {"a": "b"}),
"vartx": (("x", "time"), np.arange(480).reshape(10, 48), {"a": "b"}),
"vary": ("y", np.arange(12)),
},
coords={"time": np.arange(48), "y": np.arange(12)},
attrs={"foo": "bar"},
)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_coarsen.py#x1B[0m:259:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataset.py#x1B[0m:715: in __init__
variables, coord_names, dims, indexes, _ = merge_data_and_coords(
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataset.py#x1B[0m:425: in merge_data_and_coords
coords = create_coords_with_default_indexes(coords, data_vars)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/coordinates.py#x1B[0m:1007: in create_coords_with_default_indexes
idx, idx_vars = create_default_index_implicit(variable, all_variables)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/indexes.py#x1B[0m:1416: in create_default_index_implicit
index_vars = index.create_variables(dim_var)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/indexes.py#x1B[0m:721: in create_variables
var = IndexVariable(self.dim, data, attrs=attrs, encoding=encoding)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:2624: in __init__
super().__init__(dims, data, attrs, encoding, fastpath)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'IndexVariable' object has no attribute '_data'") raised in repr()] IndexVariable object at 0x7f0b3666fd00>
dims = 'time'
data = PandasIndexingAdapter(array=Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, ...4, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47],
dtype='int64', name='time'), dtype=dtype('int64'))
attrs = {}
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,#x1B[0m
#x1B[1m#x1B[31mE 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,#x1B[0m
#x1B[1m#x1B[31mE 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47],#x1B[0m
#x1B[1m#x1B[31mE dtype='int64', name='time'), dtype=dtype('int64')), dims='time'#x1B[0m
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check warning on line 0 in xarray.tests.test_cftimeindex
github-actions / Test Results
2 out of 3 runs failed: test_infer_freq_valid_types (xarray.tests.test_cftimeindex)
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=CFTimeIndex([2000-01-01 00:00:00, 2000-01-02 00:00:00, 2000-01-03 00:00:00],
dtype='object', length=3, calendar='standard', freq='D'), dtype=dtype('O')), dims='dim_0'
@requires_cftime
def test_infer_freq_valid_types():
cf_indx = xr.cftime_range("2000-01-01", periods=3, freq="D")
assert xr.infer_freq(cf_indx) == "D"
> assert xr.infer_freq(xr.DataArray(cf_indx)) == "D"
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/tests/test_cftimeindex.py#x1B[0m:1311:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:476: in __init__
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:176: in _infer_coords_and_dims
coord = as_variable(
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:163: in as_variable
obj = Variable(name, data, fastpath=True)
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x14ee57ca0>
dims = 'dim_0'
data = PandasIndexingAdapter(array=CFTimeIndex([2000-01-01 00:00:00, 2000-01-02 00:00:00, 2000-01-03 00:00:00],
dtype='object', length=3, calendar='standard', freq='D'), dtype=dtype('O'))
attrs = None
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=CFTimeIndex([2000-01-01 00:00:00, 2000-01-02 00:00:00, 2000-01-03 00:00:00],#x1B[0m
#x1B[1m#x1B[31mE dtype='object', length=3, calendar='standard', freq='D'), dtype=dtype('O')), dims='dim_0'#x1B[0m
#x1B[1m#x1B[31m/Users/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 3 runs with error: test_field_access[month] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
failed on setup with "NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00',
'2000-01-01 02:00:00', '2000-01-01 03:00:00',
'2000-01-01 04:00:00', '2000-01-01 05:00:00',
'2000-01-01 06:00:00', '2000-01-01 07:00:00',
'2000-01-01 08:00:00', '2000-01-01 09:00:00',
'2000-01-01 10:00:00', '2000-01-01 11:00:00',
'2000-01-01 12:00:00', '2000-01-01 13:00:00',
'2000-01-01 14:00:00', '2000-01-01 15:00:00',
'2000-01-01 16:00:00', '2000-01-01 17:00:00',
'2000-01-01 18:00:00', '2000-01-01 19:00:00',
'2000-01-01 20:00:00', '2000-01-01 21:00:00',
'2000-01-01 22:00:00', '2000-01-01 23:00:00',
'2000-01-02 00:00:00', '2000-01-02 01:00:00',
'2000-01-02 02:00:00', '2000-01-02 03:00:00',
'2000-01-02 04:00:00', '2000-01-02 05:00:00',
'2000-01-02 06:00:00', '2000-01-02 07:00:00',
'2000-01-02 08:00:00', '2000-01-02 09:00:00',
'2000-01-02 10:00:00', '2000-01-02 11:00:00',
'2000-01-02 12:00:00', '2000-01-02 13:00:00',
'2000-01-02 14:00:00', '2000-01-02 15:00:00',
'2000-01-02 16:00:00', '2000-01-02 17:00:00',
'2000-01-02 18:00:00', '2000-01-02 19:00:00',
'2000-01-02 20:00:00', '2000-01-02 21:00:00',
'2000-01-02 22:00:00', '2000-01-02 23:00:00',
'2000-01-03 00:00:00', '2000-01-03 01:00:00',
'2000-01-03 02:00:00', '2000-01-03 03:00:00',
'2000-01-03 04:00:00', '2000-01-03 05:00:00',
'2000-01-03 06:00:00', '2000-01-03 07:00:00',
'2000-01-03 08:00:00', '2000-01-03 09:00:00',
'2000-01-03 10:00:00', '2000-01-03 11:00:00',
'2000-01-03 12:00:00', '2000-01-03 13:00:00',
'2000-01-03 14:00:00', '2000-01-03 15:00:00',
'2000-01-03 16:00:00', '2000-01-03 17:00:00',
'2000-01-03 18:00:00', '2000-01-03 19:00:00',
'2000-01-03 20:00:00', '2000-01-03 21:00:00',
'2000-01-03 22:00:00', '2000-01-03 23:00:00',
'2000-01-04 00:00:00', '2000-01-04 01:00:00',
'2000-01-04 02:00:00', '2000-01-04 03:00:00',
'2000-01-04 04:00:00', '2000-01-04 05:00:00',
'2000-01-04 06:00:00', '2000-01-04 07:00:00',
'2000-01-04 08:00:00', '2000-01-04 09:00:00',
'2000-01-04 10:00:00', '2000-01-04 11:00:00',
'2000-01-04 12:00:00', '2000-01-04 13:00:00',
'2000-01-04 14:00:00', '2000-01-04 15:00:00',
'2000-01-04 16:00:00', '2000-01-04 17:00:00',
'2000-01-04 18:00:00', '2000-01-04 19:00:00',
'2000-01-04 20:00:00', '2000-01-04 21:00:00',
'2000-01-04 22:00:00', '2000-01-04 23:00:00',
'2000-01-05 00:00:00', '2000-01-05 01:00:00',
'2000-01-05 02:00:00', '2000-01-05 03:00:00'],
dtype='datetime64[ns]', freq='H'), dtype=dtype('<M8[ns]')), dims='time'"
self = <xarray.tests.test_accessor_dt.TestDatetimeAccessor object at 0x7f447e998d00>
@pytest.fixture(autouse=True)
def setup(self):
nt = 100
data = np.random.rand(10, 10, nt)
lons = np.linspace(0, 11, 10)
lats = np.linspace(0, 20, 10)
self.times = pd.date_range(start="2000/01/01", freq="h", periods=nt)
> self.data = xr.DataArray(
data,
coords=[lons, lats, self.times],
dims=["lon", "lat", "time"],
name="data",
)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_accessor_dt.py#x1B[0m:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:476: in __init__
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:203: in _infer_coords_and_dims
var = as_variable(coord, name=dim, auto_convert=False)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:163: in as_variable
obj = Variable(name, data, fastpath=True)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/variable.py#x1B[0m:399: in __init__
super().__init__(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Variable' object has no attribute '_data'") raised in repr()] Variable object at 0x7f447b4b6080>
dims = 'time'
data = PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00',
'2000-01-01 02...'2000-01-05 02:00:00', '2000-01-05 03:00:00'],
dtype='datetime64[ns]', freq='H'), dtype=dtype('<M8[ns]'))
attrs = None
def __init__(
self,
dims: _DimsLike,
data: duckarray[Any, _DType_co],
attrs: _AttrsLike = None,
):
if not isinstance(data, _arrayfunction_or_api):
> raise NotImplementedError(
f"data is not a valid duckarray, got {data=}, {dims=}"
)
#x1B[1m#x1B[31mE NotImplementedError: data is not a valid duckarray, got data=PandasIndexingAdapter(array=DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 02:00:00', '2000-01-01 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 04:00:00', '2000-01-01 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 06:00:00', '2000-01-01 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 08:00:00', '2000-01-01 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 10:00:00', '2000-01-01 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 12:00:00', '2000-01-01 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 14:00:00', '2000-01-01 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 16:00:00', '2000-01-01 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 18:00:00', '2000-01-01 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 20:00:00', '2000-01-01 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-01 22:00:00', '2000-01-01 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 00:00:00', '2000-01-02 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 02:00:00', '2000-01-02 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 04:00:00', '2000-01-02 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 06:00:00', '2000-01-02 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 08:00:00', '2000-01-02 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 10:00:00', '2000-01-02 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 12:00:00', '2000-01-02 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 14:00:00', '2000-01-02 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 16:00:00', '2000-01-02 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 18:00:00', '2000-01-02 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 20:00:00', '2000-01-02 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-02 22:00:00', '2000-01-02 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 00:00:00', '2000-01-03 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 02:00:00', '2000-01-03 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 04:00:00', '2000-01-03 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 06:00:00', '2000-01-03 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 08:00:00', '2000-01-03 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 10:00:00', '2000-01-03 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 12:00:00', '2000-01-03 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 14:00:00', '2000-01-03 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 16:00:00', '2000-01-03 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 18:00:00', '2000-01-03 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 20:00:00', '2000-01-03 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-03 22:00:00', '2000-01-03 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 00:00:00', '2000-01-04 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 02:00:00', '2000-01-04 03:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 04:00:00', '2000-01-04 05:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 06:00:00', '2000-01-04 07:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 08:00:00', '2000-01-04 09:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 10:00:00', '2000-01-04 11:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 12:00:00', '2000-01-04 13:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 14:00:00', '2000-01-04 15:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 16:00:00', '2000-01-04 17:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 18:00:00', '2000-01-04 19:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 20:00:00', '2000-01-04 21:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-04 22:00:00', '2000-01-04 23:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-05 00:00:00', '2000-01-05 01:00:00',#x1B[0m
#x1B[1m#x1B[31mE '2000-01-05 02:00:00', '2000-01-05 03:00:00'],#x1B[0m
#x1B[1m#x1B[31mE dtype='datetime64[ns]', freq='H'), dtype=dtype('<M8[ns]')), dims='time'#x1B[0m
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:267: NotImplementedError
Check warning on line 0 in xarray.tests.test_coarsen.TestCoarsenConstruct
github-actions / Test Results
All 3 runs failed: test_coarsen_construct_keeps_all_coords (xarray.tests.test_coarsen.TestCoarsenConstruct)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for macOS-3.10/pytest.xml [took 0s]
artifacts/Test results for macOS-3.12/pytest.xml [took 0s]
Raw output
DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
self = <xarray.tests.test_coarsen.TestCoarsenConstruct object at 0x7f0b38285450>
def test_coarsen_construct_keeps_all_coords(self):
da = xr.DataArray(np.arange(24), dims=["time"])
> da = da.assign_coords(day=365 * da)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_coarsen.py#x1B[0m:338:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/_typed_ops.py#x1B[0m:311: in __rmul__
return self._binary_op(other, operator.mul, reflexive=True)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/core/dataarray.py#x1B[0m:4751: in _binary_op
else f(other_variable_or_arraylike, self.variable)
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/core.py#x1B[0m:711: in __rmul__
from xarray.namedarray._array_api import asarray, multiply
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/_array_api/__init__.py#x1B[0m:71: in <module>
from xarray.namedarray._array_api._dtypes import (
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/namedarray/_array_api/_dtypes.py#x1B[0m:18: in <module>
bool = _xp.bool
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
attr = 'bool'
def __getattr__(attr):
# Warn for expired attributes, and return a dummy function
# that always raises an exception.
try:
msg = __expired_functions__[attr]
except KeyError:
pass
else:
warnings.warn(msg, DeprecationWarning, stacklevel=2)
def _expired(*args, **kwds):
raise RuntimeError(msg)
return _expired
# Emit warnings for deprecated attributes
try:
val, msg = __deprecated_attrs__[attr]
except KeyError:
pass
else:
> warnings.warn(msg, DeprecationWarning, stacklevel=2)
#x1B[1m#x1B[31mE DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.#x1B[0m
#x1B[1m#x1B[31mE Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations#x1B[0m
#x1B[1m#x1B[31m/home/runner/micromamba/envs/xarray-tests/lib/python3.10/site-packages/numpy/__init__.py#x1B[0m:295: DeprecationWarning