diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69985c3fca..8791fb8308 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,8 +26,8 @@ repos: - types-filelock - types-setuptools - arviz - - aesara==2.7.3 - - aeppl==0.0.31 + - aesara==2.7.5 + - aeppl==0.0.32 always_run: true require_serial: true pass_filenames: false diff --git a/conda-envs/environment-dev.yml b/conda-envs/environment-dev.yml index 8524033ce3..7ee5eda730 100644 --- a/conda-envs/environment-dev.yml +++ b/conda-envs/environment-dev.yml @@ -5,8 +5,8 @@ channels: - defaults dependencies: # Base dependencies -- aeppl=0.0.31 -- aesara=2.7.4 +- aeppl=0.0.32 +- aesara=2.7.5 - arviz>=0.12.0 - blas - cachetools>=4.2.1 diff --git a/conda-envs/environment-test.yml b/conda-envs/environment-test.yml index cf3f5e2b66..c400e2c3c1 100644 --- a/conda-envs/environment-test.yml +++ b/conda-envs/environment-test.yml @@ -5,8 +5,8 @@ channels: - defaults dependencies: # Base dependencies -- aeppl=0.0.31 -- aesara=2.7.4 +- aeppl=0.0.32 +- aesara=2.7.5 - arviz>=0.12.0 - blas - cachetools>=4.2.1 diff --git a/conda-envs/windows-environment-dev.yml b/conda-envs/windows-environment-dev.yml index 6fd8e87023..6477a25caa 100644 --- a/conda-envs/windows-environment-dev.yml +++ b/conda-envs/windows-environment-dev.yml @@ -5,8 +5,8 @@ channels: - defaults dependencies: # Base dependencies (see install guide for Windows) -- aeppl=0.0.31 -- aesara=2.7.4 +- aeppl=0.0.32 +- aesara=2.7.5 - arviz>=0.12.0 - blas - cachetools>=4.2.1 diff --git a/conda-envs/windows-environment-test.yml b/conda-envs/windows-environment-test.yml index 2eefc6fa31..6cc829a3ad 100644 --- a/conda-envs/windows-environment-test.yml +++ b/conda-envs/windows-environment-test.yml @@ -5,8 +5,8 @@ channels: - defaults dependencies: # Base dependencies (see install guide for Windows) -- aeppl=0.0.31 -- aesara=2.7.4 +- aeppl=0.0.32 +- aesara=2.7.5 - arviz>=0.12.0 - blas - cachetools>=4.2.1 diff --git a/pymc/distributions/logprob.py b/pymc/distributions/logprob.py index d67dc35ed1..088b76e2ae 100644 --- a/pymc/distributions/logprob.py +++ b/pymc/distributions/logprob.py @@ -236,7 +236,6 @@ def joint_logp( tmp_rvs_to_values, extra_rewrites=transform_opt, use_jacobian=jacobian, - warn_missing_rvs=False, **kwargs, ) diff --git a/pymc/tests/test_logprob.py b/pymc/tests/test_logprob.py index d0be51e833..c388af397c 100644 --- a/pymc/tests/test_logprob.py +++ b/pymc/tests/test_logprob.py @@ -11,6 +11,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +import warnings + import aesara import aesara.tensor as at import numpy as np @@ -333,11 +335,17 @@ def logp(value, x): with Model() as m: x = Normal.dist() y = DensityDist("y", x, logp=logp) - # Aeppl raises a KeyError when it finds an unexpected RV - with pytest.raises(KeyError): - joint_logp([y], {y: y.type()}) + with pytest.warns( + UserWarning, + match="Found a random variable that was neither among the observations " + "nor the conditioned variables", + ): + assert joint_logp([y], {y: y.type()}) + # The above warning should go away with ignore_logprob. with Model() as m: x = ignore_logprob(Normal.dist()) y = DensityDist("y", x, logp=logp) - assert joint_logp([y], {y: y.type()}) + with warnings.catch_warnings(): + warnings.simplefilter("error") + assert joint_logp([y], {y: y.type()}) diff --git a/requirements-dev.txt b/requirements-dev.txt index f9f0ba2cfe..cd0c647a91 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,8 +1,8 @@ # This file is auto-generated by scripts/generate_pip_deps_from_conda.py, do not modify. # See that file for comments about the need/usage of each dependency. -aeppl==0.0.31 -aesara==2.7.4 +aeppl==0.0.32 +aesara==2.7.5 arviz>=0.12.0 cachetools>=4.2.1 cloudpickle diff --git a/requirements.txt b/requirements.txt index 860ed7c2d4..6d52a9c242 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -aeppl==0.0.31 -aesara==2.7.4 +aeppl==0.0.32 +aesara==2.7.5 arviz>=0.12.0 cachetools>=4.2.1 cloudpickle