Skip to content

Commit fbe86a4

Browse files
canyon289twiecki
authored andcommitted
Update matplotlib install (#3443)
* Update matplotlib install * Test commit * Add force reinstall * Add larger tolerance to quadpotential * Widen tolerance to second assert * Add comment regarding TravisCI changes
1 parent cc193b2 commit fbe86a4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pymc3/tests/test_quadpotential.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def test_equal_diag():
5151
for pot in pots:
5252
v_ = pot.velocity(x)
5353
e_ = pot.energy(x)
54-
npt.assert_allclose(v_, v)
55-
npt.assert_allclose(e_, e)
54+
npt.assert_allclose(v_, v, rtol=1e-6)
55+
npt.assert_allclose(e_, e, rtol=1e-6)
5656

5757

5858
def test_equal_dense():

scripts/create_testenv.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ then
3333
fi
3434
source activate ${ENVNAME}
3535
fi
36-
conda install --yes numpy scipy mkl-service matplotlib
36+
conda install --yes numpy scipy mkl-service
3737
conda install --yes -c conda-forge python-graphviz
3838

3939
pip install --upgrade pip
4040

4141
# Install editable using the setup.py
42-
pip install -e .
4342

44-
pip install -r requirements-dev.txt
43+
# Travis env is unable to import cached mpl sometimes https://github.com/pymc-devs/pymc3/issues/3423
44+
pip install --no-cache-dir --ignore-installed -e .
45+
pip install --no-cache-dir --ignore-installed -r requirements-dev.txt
4546

4647
# Install untested, non-required code (linter fails without them)
4748
pip install ipython ipywidgets

0 commit comments

Comments
 (0)