Skip to content

Commit cadff75

Browse files
ArmavicaricardoV94
authored andcommitted
Break up test_moments.py
1 parent 2f5543d commit cadff75

File tree

12 files changed

+1463
-1583
lines changed

12 files changed

+1463
-1583
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ jobs:
5656
pymc/tests/distributions/test_discrete.py
5757
pymc/tests/distributions/test_continuous.py
5858
pymc/tests/distributions/test_multivariate.py
59+
pymc/tests/distributions/test_simulator.py
5960
6061
- |
6162
pymc/tests/test_tuning.py
6263
pymc/tests/test_shared.py
6364
pymc/tests/test_types.py
64-
pymc/tests/distributions/test_moments.py
6565
6666
- |
6767
pymc/tests/test_modelcontext.py

pymc/distributions/continuous.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,9 +3661,7 @@ def _interpolated_argcdf(p, pdf, cdf, x):
36613661
# This warning happens when we divide by slope = 0: we can ignore it
36623662
# because the other result will be returned
36633663
with warnings.catch_warnings():
3664-
warnings.filterwarnings(
3665-
"ignore", ".*invalid value encountered in true_divide.*", RuntimeWarning
3666-
)
3664+
warnings.filterwarnings("ignore", ".*invalid value encountered in.*", RuntimeWarning)
36673665
large_slopes = (
36683666
-pdf[index] + np.sqrt(pdf[index] ** 2 + 2 * slope * (p - cdf[index]))
36693667
) / slope

0 commit comments

Comments
 (0)