Skip to content

Commit a7ed257

Browse files
aseyboldttwiecki
authored andcommitted
Call super().__init__ in pm.Factor
Factor is used with multiple inheritance. Those classes should always call super().__init__ to make sure all constructors are properly executed.
1 parent 435dd85 commit a7ed257

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymc3/model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class Factor(object):
152152
"""Common functionality for objects with a log probability density
153153
associated with them.
154154
"""
155+
def __init__(self, *args, **kwargs):
156+
super(Factor, self).__init__(*args, **kwargs)
157+
155158
@property
156159
def logp(self):
157160
"""Compiled log probability density function"""

0 commit comments

Comments
 (0)