Skip to content

Add support for Array API in NamedArray #14480

Add support for Array API in NamedArray

Add support for Array API in NamedArray #14480

Triggered via pull request September 21, 2024 13:37
Status Failure
Total duration 43m 44s
Artifacts 11

ci.yaml

on: pull_request
detect ci trigger
3s
detect ci trigger
Event File
9s
Event File
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

76 errors
macos-latest py3.12: xarray/tests/test_namedarray.py#L258
TestNamedArray.test_from_array_with_explicitly_indexed AssertionError: assert False + where False = isinstance(array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32), CustomArrayIndexable) + where array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32) = <Namedarray, shape=(3, 4, 5), dims=('x', 'y', 'z'), dtype=float32, data=[[[ 0. 1. 2. 3. 4.]\n [ 5. 6. 7. 8. 9..... 36. 37. 38. 39.]]\n\n [[40. 41. 42. 43. 44.]\n [45. 46. 47. 48. 49.]\n [50. 51. 52. 53. 54.]\n [55. 56. 57. 58. 59.]]]>.data
macos-latest py3.12: xarray/tests/test_namedarray.py#L375
TestNamedArray.test_duck_array_class TypeError: a (<class 'xarray.tests.test_namedarray.CustomArrayIndexable'>) is not a valid _arrayfunction or _arrayapi. Missing following attrs: _arrayfunction - {'__array_ufunc__', 'imag', 'real', '__array_function__'} _arrayapi - {'device', 'mT', 'to_device'}
macos-latest py3.12
Process completed with exit code 1.
macos-latest py3.10: xarray/tests/test_array_api.py#L41
test_aggregation ValueError: x must be at least 2-dimensional for matrix_transpose
macos-latest py3.10: xarray/tests/test_array_api.py#L49
test_aggregation_skipna ValueError: x must be at least 2-dimensional for matrix_transpose
macos-latest py3.10: xarray/tests/test_namedarray.py#L258
TestNamedArray.test_from_array_with_explicitly_indexed AssertionError: assert False + where False = isinstance(array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32), CustomArrayIndexable) + where array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32) = <Namedarray, shape=(3, 4, 5), dims=('x', 'y', 'z'), dtype=float32, data=[[[ 0. 1. 2. 3. 4.]\n [ 5. 6. 7. 8. 9..... 36. 37. 38. 39.]]\n\n [[40. 41. 42. 43. 44.]\n [45. 46. 47. 48. 49.]\n [50. 51. 52. 53. 54.]\n [55. 56. 57. 58. 59.]]]>.data
macos-latest py3.10: xarray/tests/test_namedarray.py#L273
TestNamedArray.test_real_and_imag ValueError: matrix transpose with ndim < 2 is undefined
macos-latest py3.10: xarray/tests/test_namedarray.py#L375
TestNamedArray.test_duck_array_class TypeError: a (<class 'xarray.tests.test_namedarray.CustomArrayIndexable'>) is not a valid _arrayfunction or _arrayapi. Missing following attrs: _arrayfunction - {'__array_ufunc__', 'real', 'imag', '__array_function__'} _arrayapi - {'to_device', 'mT', 'device'}
macos-latest py3.10: xarray/tests/test_namedarray.py#L384
TestNamedArray.test_duck_array_class_array_api ValueError: x must be at least 2-dimensional for matrix_transpose
macos-latest py3.10: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-2-3-False-2] ValueError: matrix transpose with ndim < 2 is undefined
macos-latest py3.10: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-3-None-True-2] ValueError: matrix transpose with ndim < 2 is undefined
macos-latest py3.10: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-3-None-False-2] ValueError: matrix transpose with ndim < 2 is undefined
macos-latest py3.10: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-3-1-True-2] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[year] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[month] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[day] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_backends_api.py#L47
test_custom_engine AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[hour] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_backends_api.py#L54
test_multiindex TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[minute] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[second] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[microsecond] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 bare-minimum: xarray/tests/test_coarsen.py#L34
test_coarsen_dataset[1-numpy-trim-left-True] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_array_api.py#L41
test_aggregation ValueError: x must be at least 2-dimensional for matrix_transpose
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_array_api.py#L49
test_aggregation_skipna ValueError: x must be at least 2-dimensional for matrix_transpose
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_namedarray.py#L258
TestNamedArray.test_from_array_with_explicitly_indexed AssertionError: assert False + where False = isinstance(array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32), CustomArrayIndexable) + where array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32) = <Namedarray, shape=(3, 4, 5), dims=('x', 'y', 'z'), dtype=float32, data=[[[ 0. 1. 2. 3. 4.]\n [ 5. 6. 7. 8. 9..... 36. 37. 38. 39.]]\n\n [[40. 41. 42. 43. 44.]\n [45. 46. 47. 48. 49.]\n [50. 51. 52. 53. 54.]\n [55. 56. 57. 58. 59.]]]>.data
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_namedarray.py#L273
TestNamedArray.test_real_and_imag ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_namedarray.py#L375
TestNamedArray.test_duck_array_class TypeError: a (<class 'xarray.tests.test_namedarray.CustomArrayIndexable'>) is not a valid _arrayfunction or _arrayapi. Missing following attrs: _arrayfunction - {'imag', 'real', '__array_ufunc__', '__array_function__'} _arrayapi - {'mT', 'device', 'to_device'}
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_namedarray.py#L384
TestNamedArray.test_duck_array_class_array_api ValueError: x must be at least 2-dimensional for matrix_transpose
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-4-1-False-2] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-4-2-True-2] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-4-2-False-2] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.11 all-but-dask: xarray/tests/test_rolling.py#L259
TestDataArrayRolling.test_rolling_reduce[numbagg-numpy-std-4-3-True-2] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.12: xarray/tests/test_namedarray.py#L258
TestNamedArray.test_from_array_with_explicitly_indexed AssertionError: assert False + where False = isinstance(array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32), CustomArrayIndexable) + where array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32) = <Namedarray, shape=(3, 4, 5), dims=('x', 'y', 'z'), dtype=float32, data=[[[ 0. 1. 2. 3. 4.]\n [ 5. 6. 7. 8. 9..... 36. 37. 38. 39.]]\n\n [[40. 41. 42. 43. 44.]\n [45. 46. 47. 48. 49.]\n [50. 51. 52. 53. 54.]\n [55. 56. 57. 58. 59.]]]>.data
ubuntu-latest py3.12: xarray/tests/test_namedarray.py#L375
TestNamedArray.test_duck_array_class TypeError: a (<class 'xarray.tests.test_namedarray.CustomArrayIndexable'>) is not a valid _arrayfunction or _arrayapi. Missing following attrs: _arrayfunction - {'imag', 'real', '__array_function__', '__array_ufunc__'} _arrayapi - {'device', 'to_device', 'mT'}
ubuntu-latest py3.12
Process completed with exit code 1.
ubuntu-latest py3.10: xarray/tests/test_array_api.py#L41
test_aggregation ValueError: x must be at least 2-dimensional for matrix_transpose
ubuntu-latest py3.10: xarray/tests/test_array_api.py#L49
test_aggregation_skipna ValueError: x must be at least 2-dimensional for matrix_transpose
ubuntu-latest py3.10: xarray/tests/test_namedarray.py#L258
TestNamedArray.test_from_array_with_explicitly_indexed AssertionError: assert False + where False = isinstance(array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32), CustomArrayIndexable) + where array([[[ 0., 1., 2., 3., 4.],\n [ 5., 6., 7., 8., 9.],\n [10., 11., 12., 13., 14.],\n [15.,... [45., 46., 47., 48., 49.],\n [50., 51., 52., 53., 54.],\n [55., 56., 57., 58., 59.]]], dtype=float32) = <Namedarray, shape=(3, 4, 5), dims=('x', 'y', 'z'), dtype=float32, data=[[[ 0. 1. 2. 3. 4.]\n [ 5. 6. 7. 8. 9..... 36. 37. 38. 39.]]\n\n [[40. 41. 42. 43. 44.]\n [45. 46. 47. 48. 49.]\n [50. 51. 52. 53. 54.]\n [55. 56. 57. 58. 59.]]]>.data
ubuntu-latest py3.10: xarray/tests/test_namedarray.py#L273
TestNamedArray.test_real_and_imag ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.10: xarray/tests/test_namedarray.py#L375
TestNamedArray.test_duck_array_class TypeError: a (<class 'xarray.tests.test_namedarray.CustomArrayIndexable'>) is not a valid _arrayfunction or _arrayapi. Missing following attrs: _arrayfunction - {'__array_function__', 'imag', 'real', '__array_ufunc__'} _arrayapi - {'device', 'mT', 'to_device'}
ubuntu-latest py3.10: xarray/tests/test_namedarray.py#L384
TestNamedArray.test_duck_array_class_array_api ValueError: x must be at least 2-dimensional for matrix_transpose
ubuntu-latest py3.10: xarray/tests/test_rolling.py#L207
TestDataArrayRolling.test_rolling_pandas_compat[numbagg-1-None-True] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.10: xarray/tests/test_rolling.py#L207
TestDataArrayRolling.test_rolling_pandas_compat[numbagg-1-None-False] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.10: xarray/tests/test_rolling.py#L207
TestDataArrayRolling.test_rolling_pandas_compat[numbagg-1-1-True] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.10: xarray/tests/test_rolling.py#L207
TestDataArrayRolling.test_rolling_pandas_compat[numbagg-1-1-False] ValueError: matrix transpose with ndim < 2 is undefined
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[year] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_backends.py#L2875
TestZarrWriteEmpty.test_write_region[True-True-True-True] AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_backends.py#L2875
TestZarrWriteEmpty.test_write_region[True-True-True-None] AssertionError: Left and right Dataset objects are not identical Differing data variables: L u (x) float64 80B dask.array<chunksize=(2,), meta=np.ndarray> R u (x) float64 80B dask.array<chunksize=(2,), meta=np.ndarray>
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[month] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[day] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_backends.py#L2888
TestZarrWriteEmpty.test_write_region[None-False-False-False] AssertionError: Left and right Dataset objects are not identical Differing data variables: L u (x) float64 80B dask.array<chunksize=(2,), meta=np.ndarray> R u (x) int64 80B 1 2 3 4 5 6 7 8 9 10
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_backends.py#L1841
TestH5NetCDFViaDaskData.test_raise_on_forward_slashes_in_names TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[hour] TypeError: asarray() got an unexpected keyword argument 'copy'
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_backends.py#L2888
TestZarrWriteEmpty.test_write_region[None-False-False-True] AssertionError: Left and right Dataset objects are not identical Differing data variables: L u (x) float64 80B dask.array<chunksize=(2,), meta=np.ndarray> R u (x) int64 80B 1 2 3 4 5 6 7 8 9 10
ubuntu-latest py3.10 min-all-deps: xarray/tests/test_backends.py#L2888
TestZarrWriteEmpty.test_write_region[None-False-False-None] AssertionError: Left and right Dataset objects are not identical Differing data variables: L u (x) float64 80B dask.array<chunksize=(2,), meta=np.ndarray> R u (x) int64 80B 1 2 3 4 5 6 7 8 9 10
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[year] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[month] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[day] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_backends.py#L410
TestH5NetCDFData.test_roundtrip_test_data TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[hour] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[minute] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_backends.py#L377
TestZarrKVStoreV3.test_zero_dimensional_variable TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[second] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_backends.py#L383
TestZarrKVStoreV3.test_write_store TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.10: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[microsecond] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[year] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[month] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[day] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[hour] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_backends.py#L410
TestH5NetCDFData.test_roundtrip_test_data TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_backends.py#L377
TestZarrKVStoreV3.test_zero_dimensional_variable TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[minute] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[second] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_accessor_dt.py#L103
TestDatetimeAccessor.test_field_access[microsecond] TypeError: asarray() got an unexpected keyword argument 'copy'
windows-latest py3.12: xarray\tests\test_backends.py#L383
TestZarrKVStoreV3.test_write_store TypeError: asarray() got an unexpected keyword argument 'copy'

Artifacts

Produced during runtime
Name Size
Event File
3.88 KB
Test results for Linux-3.10
191 KB
Test results for Linux-3.10 bare-minimum
457 KB
Test results for Linux-3.10 min-all-deps
1.24 MB
Test results for Linux-3.11 all-but-dask
214 KB
Test results for Linux-3.12
149 KB
Test results for Linux-3.12 flaky
662 Bytes
Test results for Windows-3.10
1.01 MB
Test results for Windows-3.12
949 KB
Test results for macOS-3.10
196 KB
Test results for macOS-3.12
150 KB