Skip to content
Snippets Groups Projects
Commit dbc087c8 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Drop inverse trig functions with C names from actx.np

parent f76a976a
No related branches found
No related tags found
No related merge requests found
...@@ -138,11 +138,8 @@ class LoopyBasedFakeNumpyNamespace(BaseFakeNumpyNamespace): ...@@ -138,11 +138,8 @@ class LoopyBasedFakeNumpyNamespace(BaseFakeNumpyNamespace):
return outputs["out"] return outputs["out"]
if name in self._c_to_numpy_arc_functions: if name in self._c_to_numpy_arc_functions:
from warnings import warn raise RuntimeError(f"'{name}' in ArrayContext.np has been removed. "
warn(f"'{name}' in ArrayContext.np is deprecated. " f"Use '{self._c_to_numpy_arc_functions[name]}' as in numpy. ")
f"Use '{self._c_to_numpy_arc_functions[name]}' as in numpy. "
"The old name will stop working in 2022.",
DeprecationWarning, stacklevel=3)
# normalize to C names anyway # normalize to C names anyway
c_name = self._numpy_to_c_arc_functions.get(name, name) c_name = self._numpy_to_c_arc_functions.get(name, name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment