File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ def check_selfconsistency_discrete_logcdf(
588
588
for pt in product (domains , n_samples = n_samples ):
589
589
params = dict (pt )
590
590
value = params .pop ("value" )
591
- values = np .arange (0 , value + 1 )
591
+ values = np .arange (domain . lower , value + 1 )
592
592
dist = distribution .dist (** params )
593
593
assert_almost_equal (
594
594
dist .logcdf (value ).tag .test_value ,
@@ -673,8 +673,7 @@ def test_discrete_unif(self):
673
673
self .check_selfconsistency_discrete_logcdf (
674
674
DiscreteUniform ,
675
675
Rdunif ,
676
- # Using lower = Bool, as this unittest assumes the distribution domain starts at zero.
677
- {"lower" : Bool , "upper" : Rplusdunif },
676
+ {"lower" : - Rplusdunif , "upper" : Rplusdunif },
678
677
)
679
678
680
679
def test_flat (self ):
You can’t perform that action at this time.
0 commit comments