Skip to content

Commit bcdb7fc

Browse files
ArmavicaricardoV94
authored andcommitted
Remove deprecated assert_negative_support
1 parent 54f7101 commit bcdb7fc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pymc/distributions/continuous.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,6 @@ def transform_params(*args):
199199
return transforms.Interval(bounds_fn=transform_params)
200200

201201

202-
def assert_negative_support(var, label, distname, value=-1e-6):
203-
warnings.warn(
204-
"The assert_negative_support function will be deprecated in future versions!"
205-
" See https://github.com/pymc-devs/pymc/issues/5162",
206-
DeprecationWarning,
207-
)
208-
msg = f"The variable specified for {label} has negative support for {distname}, "
209-
msg += "likely making it unsuitable for this parameter."
210-
return Assert(msg)(var, pt.all(pt.ge(var, 0.0)))
211-
212-
213202
def get_tau_sigma(
214203
tau: TensorLike | None = None, sigma: TensorLike | None = None
215204
) -> tuple[TensorVariable, TensorVariable]:

0 commit comments

Comments
 (0)