Skip to content

Commit

Permalink
Removed duplicate/redundant warning for ConstantDist
Browse files Browse the repository at this point in the history
  • Loading branch information
fonnesbeck committed Aug 3, 2017
1 parent 50941e1 commit cbaa3dc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pymc3/distributions/discrete.py
Expand Up @@ -581,11 +581,7 @@ def _repr_latex_(self, name=None, dist=None):
return r'${} \sim \text{{Constant}}()$'.format(name)


def ConstantDist(*args, **kwargs):
import warnings
warnings.warn("ConstantDist has been deprecated. In future, use Constant instead.",
DeprecationWarning)
return Constant(*args, **kwargs)
ConstantDist = Constant


class ZeroInflatedPoisson(Discrete):
Expand Down

0 comments on commit cbaa3dc

Please sign in to comment.