Skip to content

Commit

Permalink
Update scipy dependency to >= 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jun 10, 2021
1 parent 7b8cfe0 commit 9027b57
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## PyMC3 vNext (4.0.0)
### Breaking Changes
- ⚠ Theano-PyMC has been replaced with Aesara, so all external references to `theano`, `tt`, and `pymc3.theanof` need to be replaced with `aesara`, `at`, and `pymc3.aesaraf` (see [4471](https://github.com/pymc-devs/pymc3/pull/4471)).
- ⚠ PyMC3 now requires Scipy version `>= 1.4.1` (see [4736](https://github.com/pymc-devs/pymc3/pull/4736)).
- ArviZ `plots` and `stats` *wrappers* were removed. The functions are now just available by their original names (see [#4549](https://github.com/pymc-devs/pymc3/pull/4471) and `3.11.2` release notes).
- The GLM submodule has been removed, please use [Bambi](https://bambinos.github.io/bambi/) instead.
- The `Distribution` keyword argument `testval` has been deprecated in favor of `initval`.
Expand Down
10 changes: 0 additions & 10 deletions pymc3/tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
from aesara.tensor.var import TensorVariable
from numpy import array, inf, log
from numpy.testing import assert_allclose, assert_almost_equal, assert_equal
from packaging.version import parse
from scipy import __version__ as scipy_version
from scipy import integrate
from scipy.special import erf, logit

Expand Down Expand Up @@ -108,8 +106,6 @@
from pymc3.tests.helpers import select_by_precision
from pymc3.vartypes import continuous_types

SCIPY_VERSION = parse(scipy_version)


def get_lkj_cases():
"""
Expand Down Expand Up @@ -1560,9 +1556,6 @@ def test_beta_binomial_distribution(self):
{"alpha": Rplus, "beta": Rplus, "n": NatSmall},
)

@pytest.mark.skipif(
condition=(SCIPY_VERSION < parse("1.4.0")), reason="betabinom is new in Scipy 1.4.0"
)
def test_beta_binomial_logp(self):
self.check_logp(
BetaBinomial,
Expand All @@ -1572,9 +1565,6 @@ def test_beta_binomial_logp(self):
)

@pytest.mark.xfail(condition=(aesara.config.floatX == "float32"), reason="Fails on float32")
@pytest.mark.skipif(
condition=(SCIPY_VERSION < parse("1.4.0")), reason="betabinom is new in Scipy 1.4.0"
)
def test_beta_binomial_logcdf(self):
self.check_logcdf(
BetaBinomial,
Expand Down
8 changes: 0 additions & 8 deletions pymc3/tests/test_distributions_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import scipy.stats as st

from numpy.testing import assert_almost_equal, assert_array_almost_equal
from packaging.version import parse
from scipy import __version__ as scipy_version
from scipy.special import expit

import pymc3 as pm
Expand Down Expand Up @@ -54,8 +52,6 @@
product,
)

SCIPY_VERSION = parse(scipy_version)


def pymc3_random(
dist,
Expand Down Expand Up @@ -1026,10 +1022,6 @@ def seeded_weibul_rng_fn(self):
]


@pytest.mark.skipif(
condition=(SCIPY_VERSION < parse("1.4.0")),
reason="betabinom is new in Scipy 1.4.0",
)
class TestBetaBinomial(BaseTestDistribution):
pymc_dist = pm.BetaBinomial
pymc_dist_params = {"alpha": 2.0, "beta": 1.0, "n": 5}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ fastprogress>=0.2.0
numpy>=1.15.0
pandas>=0.24.0
patsy>=0.5.1
scipy>=1.2.0
scipy>=1.4.1
typing-extensions>=3.7.4

0 comments on commit 9027b57

Please sign in to comment.