From d261140ef3f9f107883bb301760b2e09beeb73b5 Mon Sep 17 00:00:00 2001 From: shreyas3156 Date: Wed, 9 Aug 2023 04:39:18 +0530 Subject: [PATCH] Tests for measurable branches and deny discrete --- tests/logprob/test_censoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/logprob/test_censoring.py b/tests/logprob/test_censoring.py index fdcfcf07815..74a5e004ced 100644 --- a/tests/logprob/test_censoring.py +++ b/tests/logprob/test_censoring.py @@ -287,7 +287,7 @@ def test_switch_encoding_both_branches(): ], ) def test_switch_encoding_one_branch_measurable(measurable_idx, test_values, exp_logp): - x_rv = pt.random.normal(0.5, 1) # should not be defined again ideally + x_rv = pt.random.normal(0.5, 1) branches = (1, x_rv) if measurable_idx == 1 else (x_rv, 1) y_rv = pt.switch(x_rv < 1, *branches)