From 21a89f1b18dbf1cf79f663f96c0bf96635b2739e Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 21 Mar 2025 14:03:49 -0500 Subject: [PATCH] Disallow deprecated use of _rec_map_container with legacy array types --- arraycontext/impl/pytato/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arraycontext/impl/pytato/__init__.py b/arraycontext/impl/pytato/__init__.py index 958ec32..337a70e 100644 --- a/arraycontext/impl/pytato/__init__.py +++ b/arraycontext/impl/pytato/__init__.py @@ -342,14 +342,6 @@ class PytatoPyOpenCLArrayContext(_BasePytatoArrayContext): def _wrapper(ary): if isinstance(ary, allowed_types): return func(ary) - elif not strict and isinstance(ary, self._frozen_array_types): - from warnings import warn - warn(f"Invoking {type(self).__name__}.{func.__name__[1:]} with" - f" {type(ary).__name__} will be unsupported in 2023. Use" - " 'to_tagged_cl_array' to convert instances to" - " TaggableCLArray.", DeprecationWarning, stacklevel=2) - - return func(tga.to_tagged_cl_array(ary)) elif np.isscalar(ary): if default_scalar is None: return ary -- GitLab