Skip to content

Commit

Permalink
Remove deprecated assert_negative_support
Browse files Browse the repository at this point in the history
  • Loading branch information
Armavica authored and ricardoV94 committed Oct 10, 2024
1 parent 54f7101 commit bcdb7fc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pymc/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,6 @@ def transform_params(*args):
return transforms.Interval(bounds_fn=transform_params)


def assert_negative_support(var, label, distname, value=-1e-6):
warnings.warn(
"The assert_negative_support function will be deprecated in future versions!"
" See https://github.com/pymc-devs/pymc/issues/5162",
DeprecationWarning,
)
msg = f"The variable specified for {label} has negative support for {distname}, "
msg += "likely making it unsuitable for this parameter."
return Assert(msg)(var, pt.all(pt.ge(var, 0.0)))


def get_tau_sigma(
tau: TensorLike | None = None, sigma: TensorLike | None = None
) -> tuple[TensorVariable, TensorVariable]:
Expand Down

0 comments on commit bcdb7fc

Please sign in to comment.