Skip to content

Make use of ObjectArray in pytools 2025.2 #1893

Make use of ObjectArray in pytools 2025.2

Make use of ObjectArray in pytools 2025.2 #1893

Triggered via pull request July 3, 2025 03:11
@inducerinducer
synchronize #326
obj-array
Status Cancelled
Total duration 7m 21s
Artifacts

ci.yml

on: pull_request
Matrix: downstream_tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 46 warnings
Ruff
Process completed with exit code 1.
basedpyright
Process completed with exit code 1.
basedpyright
2 errors
basedpyright: arraycontext/container/traversal.py#L1141
Type "ndarray[_AnyShape, dtype[Any]] | ObjectArrayND[ArrayOrContainerOrScalar] | _UserDefinedArrayContainer" is not assignable to return type "ArrayOrContainer"   Type "ndarray[_AnyShape, dtype[Any]] | ObjectArrayND[ArrayOrContainerOrScalar] | _UserDefinedArrayContainer" is not assignable to type "ArrayOrContainer"     Type "ndarray[_AnyShape, dtype[Any]]" is not assignable to type "ArrayOrContainer"       "ndarray[_AnyShape, dtype[Any]]" is incompatible with protocol "Array"         "Array" is not assignable to "ndarray[_AnyShape, dtype[Any]]"         "Array" is not assignable to "ndarray[_AnyShape, dtype[Any]]"         "Array" is not assignable to "ndarray[_AnyShape, dtype[Any]]"         "__getitem__" is an incompatible type           No overloaded function matches type "(index: Any) -> Array" ... (reportReturnType)
basedpyright: arraycontext/container/traversal.py#L1117
"ScalarLike" is not defined (reportUndefinedVariable)
Tests for downstream project meshmode
The operation was canceled.
Tests for downstream project meshmode
Canceling since a higher priority waiting request for obj-array exists
CI
Canceling since a higher priority waiting request for obj-array exists
Tests for downstream project grudge
The operation was canceled.
Tests for downstream project grudge
Canceling since a higher priority waiting request for obj-array exists
Tests for downstream project mirgecom
No point in testing mirgecom at the moment, see https://github.com/illinois-ceesd/mirgecom/pull/898. Test not performed.
Tests for downstream project mirgecom_examples
No point in testing mirgecom at the moment, see https://github.com/illinois-ceesd/mirgecom/pull/898. Test not performed.
Ruff
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
basedpyright: arraycontext/container/traversal.py#L1128
Argument type is partially unknown   Argument corresponds to parameter "array" in function "from_numpy"   Argument type is "ndarray[tuple[Any, ...], dtype[Any]] | Unknown" (reportUnknownArgumentType)
basedpyright: arraycontext/container/traversal.py#L1117
Type of parameter "ary" is partially unknown   Parameter type is "ndarray[tuple[Any, ...], dtype[Any]] | Unknown" (reportUnknownParameterType)
basedpyright: arraycontext/__init__.py#L54
Type of "from_numpy" is partially unknown   Type of "from_numpy" is "(ary: ndarray[tuple[Any, ...], dtype[Any]] | Unknown, actx: ArrayContext) -> (Array | ObjectArray[tuple[int, ...], ArrayOrContainerOrScalar] | _UserDefinedArrayContainer | int | integer[Any] | float | complex | inexact[Any, float | complex] | builtins.bool | numpy.bool[builtins.bool])" (reportUnknownVariableType)
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Tests for downstream project meshmode: meshmode/.conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Tests for downstream project meshmode: meshmode/test/test_array.py#L59
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/test/test_array.py#L59
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.::warning file=/home/runner/work/arraycontext/arraycontext/meshmode/meshmode/dof_array.py,line=79::'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/.conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Tests for downstream project meshmode: meshmode/test/test_array.py#L59
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/pytools/__init__.py#L1109
Encountered 'numpy.ndarray' in a dataclass_array_container. This is deprecated and will stop working in 2026. If you meant an object array, use pytools.obj_array.ObjectArray. For other uses, file an issue to discuss.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.