Skip to content

Commit 9705a8a

Browse files
ricardoV94twiecki
authored andcommitted
Add deprecation warning to logpt_sum
1 parent fcbbf87 commit 9705a8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pymc/distributions/logprob.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,5 +282,9 @@ def logpt_sum(*args, **kwargs):
282282
Subclasses can use this to improve the speed of logp evaluations
283283
if only the sum of the logp values is needed.
284284
"""
285-
# TODO: Deprecate this
285+
warnings.warn(
286+
"logpt_sum has been deprecated, you can use logpt instead, which now defaults"
287+
"to the same behavior of logpt_sum",
288+
DeprecationWarning,
289+
)
286290
return logpt(*args, sum=True, **kwargs)

0 commit comments

Comments
 (0)