diff --git a/arraycontext/loopy.py b/arraycontext/loopy.py index f8e54b5833a8a1fb6d0ef247e3c00bb972545bbb..2b89d76aeb52db53be10612b128f5ab5351cc36d 100644 --- a/arraycontext/loopy.py +++ b/arraycontext/loopy.py @@ -138,11 +138,8 @@ class LoopyBasedFakeNumpyNamespace(BaseFakeNumpyNamespace): return outputs["out"] if name in self._c_to_numpy_arc_functions: - from warnings import warn - warn(f"'{name}' in ArrayContext.np is deprecated. " - f"Use '{self._c_to_numpy_arc_functions[name]}' as in numpy. " - "The old name will stop working in 2022.", - DeprecationWarning, stacklevel=3) + raise RuntimeError(f"'{name}' in ArrayContext.np has been removed. " + f"Use '{self._c_to_numpy_arc_functions[name]}' as in numpy. ") # normalize to C names anyway c_name = self._numpy_to_c_arc_functions.get(name, name)