From 22b89824744520cee66ba78297bd168d9f3e584e Mon Sep 17 00:00:00 2001 From: Virgile Andreani Date: Thu, 10 Oct 2024 10:08:27 +0200 Subject: [PATCH] Remove deprecated zerosum_axes argument to ZeroSumNormal --- pymc/distributions/multivariate.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pymc/distributions/multivariate.py b/pymc/distributions/multivariate.py index 55e275be3eb..da10b12fa9c 100644 --- a/pymc/distributions/multivariate.py +++ b/pymc/distributions/multivariate.py @@ -2709,7 +2709,6 @@ class ZeroSumNormal(Distribution): n_zerosum_axes: int, defaults to 1 Number of axes along which the zero-sum constraint is enforced, starting from the rightmost position. Defaults to 1, i.e the rightmost axis. - zerosum_axes: int, deprecated please use n_zerosum_axes as its successor dims: sequence of strings, optional Dimension names of the distribution. Works the same as for other PyMC distributions. Necessary if ``shape`` is not passed. @@ -2749,15 +2748,7 @@ class ZeroSumNormal(Distribution): rv_type = ZeroSumNormalRV rv_op = ZeroSumNormalRV.rv_op - def __new__( - cls, *args, zerosum_axes=None, n_zerosum_axes=None, support_shape=None, dims=None, **kwargs - ): - if zerosum_axes is not None: - n_zerosum_axes = zerosum_axes - warnings.warn( - "The 'zerosum_axes' parameter is deprecated. Use 'n_zerosum_axes' instead.", - DeprecationWarning, - ) + def __new__(cls, *args, n_zerosum_axes=None, support_shape=None, dims=None, **kwargs): if dims is not None or kwargs.get("observed") is not None: n_zerosum_axes = cls.check_zerosum_axes(n_zerosum_axes)