Skip to content

Commit e68dcf4

Browse files
committed
remove scipy test dependency
1 parent 7ecb089 commit e68dcf4

File tree

4 files changed

+6800
-4786
lines changed

4 files changed

+6800
-4786
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: "3.x"
2929
- uses: actions/checkout@v1
3030
- name: Install dependencies
31-
run: sudo apt-get install -y texlive-latex-base texlive-latex-extra context python3-tk python3-scipy
31+
run: sudo apt-get install -y texlive-latex-base texlive-latex-extra context python3-tk
3232
- name: Install package
3333
run: |
3434
pip install --upgrade pip

test/test_contourf.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
3-
from scipy.stats import multivariate_normal
43

54
from helpers import assert_equality
65

76

87
def plot():
9-
mean = np.array([1, 1])
10-
cov = np.eye(2)
118
nbins = 5
129

1310
fig = plt.figure()
@@ -22,7 +19,7 @@ def plot():
2219
pos = np.empty(xi.shape + (2,))
2320
pos[:, :, 0] = xi
2421
pos[:, :, 1] = yi
25-
zi = multivariate_normal(mean, cov, allow_singular=True, seed=0).pdf(pos)
22+
zi = 2 - (xi - 1) ** 2 - (yi - 1) ** 2
2623
ax.contourf(xi, yi, zi, 250)
2724

2825
ax.set_xlim(x_min, x_max)
@@ -36,7 +33,9 @@ def test():
3633

3734

3835
if __name__ == "__main__":
39-
import helpers
36+
plot()
37+
plt.show()
38+
# import helpers
4039

41-
helpers.compare_mpl_tex(plot)
40+
# helpers.compare_mpl_tex(plot)
4241
# helpers.print_tree(plot())

0 commit comments

Comments
 (0)