Skip to content

Commit 22b8982

Browse files
ArmavicaricardoV94
authored andcommitted
Remove deprecated zerosum_axes argument to ZeroSumNormal
1 parent bcdb7fc commit 22b8982

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pymc/distributions/multivariate.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,7 +2709,6 @@ class ZeroSumNormal(Distribution):
27092709
n_zerosum_axes: int, defaults to 1
27102710
Number of axes along which the zero-sum constraint is enforced, starting from the rightmost position.
27112711
Defaults to 1, i.e the rightmost axis.
2712-
zerosum_axes: int, deprecated please use n_zerosum_axes as its successor
27132712
dims: sequence of strings, optional
27142713
Dimension names of the distribution. Works the same as for other PyMC distributions.
27152714
Necessary if ``shape`` is not passed.
@@ -2749,15 +2748,7 @@ class ZeroSumNormal(Distribution):
27492748
rv_type = ZeroSumNormalRV
27502749
rv_op = ZeroSumNormalRV.rv_op
27512750

2752-
def __new__(
2753-
cls, *args, zerosum_axes=None, n_zerosum_axes=None, support_shape=None, dims=None, **kwargs
2754-
):
2755-
if zerosum_axes is not None:
2756-
n_zerosum_axes = zerosum_axes
2757-
warnings.warn(
2758-
"The 'zerosum_axes' parameter is deprecated. Use 'n_zerosum_axes' instead.",
2759-
DeprecationWarning,
2760-
)
2751+
def __new__(cls, *args, n_zerosum_axes=None, support_shape=None, dims=None, **kwargs):
27612752
if dims is not None or kwargs.get("observed") is not None:
27622753
n_zerosum_axes = cls.check_zerosum_axes(n_zerosum_axes)
27632754

0 commit comments

Comments
 (0)