提交 1644fb04 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Add a deprecated aesara.scalar.basic_scipy module stub

上级 d0b198d2
import warnings
warnings.warn(
"The module `aesara.scalar.basic_scipy` is deprecated "
"and has been renamed to `aesara.scalar.math`",
DeprecationWarning,
stacklevel=2,
)
from aesara.scalar.math import *
......@@ -4,6 +4,7 @@ ignore = E203,E231,E501,E741,W503,W504,C901
max-line-length = 88
per-file-ignores =
**/__init__.py:F401,E402,F403
aesara/scalar/basic_scipy.py:E402,F403,F401
aesara/graph/toolbox.py:E402,F403,F401
aesara/link/jax/jax_dispatch.py:E402,F403,F401
aesara/link/jax/jax_linker.py:E402,F403,F401
......
......@@ -645,3 +645,8 @@ class TestSoftplus:
y_th = aet.softplus(x_test).eval()
y_np = np.log1p(np.exp(x_test))
np.testing.assert_allclose(y_th, y_np, rtol=10e-10)
def test_deprecated_module():
with pytest.warns(DeprecationWarning):
import aesara.scalar.basic_scipy # noqa: F401
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论