Add support for Array API in NamedArray #143
3 301 errors, 4 498 fail, 1 316 skipped, 6 294 pass in 2h 56m 29s
Annotations
github-actions / Test Results
All 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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
8 out of 10 runs with error: xarray.tests.test_distributed
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:182: 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:182: 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:182: 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:182: 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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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 10 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.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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:1027: in _find_and_load
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1006: in _find_and_load_unlocked
???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:688: in _load_unlocked
???
#x1B[1m#x1B[31m../../../micromamba/envs/xarray-tests/lib/python3.10/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
9 out of 10 runs with error: xarray.tests.test_sparse
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12 flaky/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 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 Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cc790>
@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 0x7fa750113ac0>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 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 Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cc850>
@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 0x7fa7500d7400>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[day] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd1e0>
@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 0x7fa7500d7ee0>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[hour] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd2a0>
@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 0x7fa74bf98100>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[minute] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd360>
@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 0x7fa74bf99cc0>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[second] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd420>
@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 0x7fa74bf9a4a0>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[microsecond] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd4e0>
@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 0x7fa74bf9b280>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[nanosecond] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd5a0>
@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 0x7fa7565fbe80>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[week] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd660>
@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 0x7fa756488400>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[weekofyear] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd720>
@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 0x7fa74bf98640>
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 failure on line 0 in xarray.tests.test_accessor_dt.TestDatetimeAccessor
github-actions / Test Results
All 9 runs with error: test_field_access[dayofweek] (xarray.tests.test_accessor_dt.TestDatetimeAccessor)
artifacts/Test results for Linux-3.10 bare-minimum/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10 min-all-deps/pytest.xml [took 0s]
artifacts/Test results for Linux-3.10/pytest.xml [took 0s]
artifacts/Test results for Linux-3.11 all-but-dask/pytest.xml [took 0s]
artifacts/Test results for Linux-3.12/pytest.xml [took 0s]
artifacts/Test results for Windows-3.10/pytest.xml [took 0s]
artifacts/Test results for Windows-3.12/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 0x7fa7564cd7e0>
@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 0x7fa7500d72e0>
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