@@ -1177,12 +1177,15 @@ def test_fun(value, mu, sigma):
1177
1177
1178
1178
self .pymc3_matches_scipy (Gamma , Rplus , {"mu" : Rplusbig , "sigma" : Rplusbig }, test_fun )
1179
1179
1180
+ # pymc-devs/Theano-PyMC#224: skip_paramdomain_outside_edge_test has to be set
1181
+ # True to avoid triggering a C-level assertion in the Theano GammaQ function
1182
+ # in gamma.c file. Can be set back to False (defalut) once that issue is solved
1180
1183
self .check_logcdf (
1181
1184
Gamma ,
1182
1185
Rplus ,
1183
1186
{"alpha" : Rplusbig , "beta" : Rplusbig },
1184
1187
lambda value , alpha , beta : sp .gamma .logcdf (value , alpha , scale = 1.0 / beta ),
1185
- skip_paramdomain_outside_edge_test = True , # TODO: When True, Python crashes
1188
+ skip_paramdomain_outside_edge_test = True ,
1186
1189
)
1187
1190
1188
1191
@pytest .mark .xfail (
@@ -1196,12 +1199,15 @@ def test_inverse_gamma(self):
1196
1199
{"alpha" : Rplus , "beta" : Rplus },
1197
1200
lambda value , alpha , beta : sp .invgamma .logpdf (value , alpha , scale = beta ),
1198
1201
)
1202
+ # pymc-devs/Theano-PyMC#224: skip_paramdomain_outside_edge_test has to be set
1203
+ # True to avoid triggering a C-level assertion in the Theano GammaQ function
1204
+ # in gamma.c file. Can be set back to False (defalut) once that issue is solved
1199
1205
self .check_logcdf (
1200
1206
InverseGamma ,
1201
1207
Rplus ,
1202
1208
{"alpha" : Rplus , "beta" : Rplus },
1203
1209
lambda value , alpha , beta : sp .invgamma .logcdf (value , alpha , scale = beta ),
1204
- skip_paramdomain_outside_edge_test = True , # TODO: When True, Python crashes
1210
+ skip_paramdomain_outside_edge_test = True ,
1205
1211
)
1206
1212
1207
1213
@pytest .mark .xfail (
0 commit comments