Skip to content

Commit 8b79a03

Browse files
committed
Remove unneccessary MeasurableVariable registration
1 parent 7b08fc1 commit 8b79a03

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pymc/distributions/truncated.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from pymc.distributions.shape_utils import _change_dist_size, change_dist_size, to_tuple
3838
from pymc.distributions.transforms import _default_transform
3939
from pymc.exceptions import TruncationError
40-
from pymc.logprob.abstract import MeasurableVariable, _logcdf, _logprob
40+
from pymc.logprob.abstract import _logcdf, _logprob
4141
from pymc.logprob.basic import icdf, logcdf
4242
from pymc.math import logdiffexp
4343
from pymc.util import check_dist_not_registered
@@ -64,9 +64,6 @@ def update(self, node: Node):
6464
return {node.inputs[-1]: node.outputs[0]}
6565

6666

67-
MeasurableVariable.register(TruncatedRV)
68-
69-
7067
@singledispatch
7168
def _truncated(op: Op, lower, upper, size, *params):
7269
"""Return the truncated equivalent of another `RandomVariable`."""

0 commit comments

Comments
 (0)