Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65f09c1

Browse files
committed
Only build once with 2.7 on Travis.
Saving some more time on CI, and checking that the docs build with old numpys as well. Some examples needed to be fixed to build on python2.7+numpy1.7. Delete examples/misc/rec_join_demo.py which is not working on numpy 1.7.1 -- not fixing it, as rec_join is arguably better provided by pandas-style librairies anyways.
1 parent 269dabc commit 65f09c1

File tree

3 files changed

+6
-38
lines changed

3 files changed

+6
-38
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ env:
5252
matrix:
5353
include:
5454
- python: 2.7
55-
env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas
56-
- python: 2.7
57-
env: BUILD_DOCS=true
55+
env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas BUILD_DOCS=true
5856
- python: 3.4
5957
env: PYTHON_ARGS=-OO
6058
- python: 3.5

examples/misc/rec_join_demo.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/showcase/mandelbrot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515

1616
def mandelbrot_set(xmin, xmax, ymin, ymax, xn, yn, maxiter, horizon=2.0):
17-
X = np.linspace(xmin, xmax, xn, dtype=np.float32)
18-
Y = np.linspace(ymin, ymax, yn, dtype=np.float32)
19-
C = X + Y[:, None]*1j
20-
N = np.zeros(C.shape, dtype=int)
21-
Z = np.zeros(C.shape, np.complex64)
17+
X = np.linspace(xmin, xmax, xn).astype(np.float32)
18+
Y = np.linspace(ymin, ymax, yn).astype(np.float32)
19+
C = X + Y[:, None] * 1j
20+
N = np.zeros_like(C, dtype=int)
21+
Z = np.zeros_like(C)
2222
for n in range(maxiter):
2323
I = np.less(abs(Z), horizon)
2424
N[I] = n

0 commit comments

Comments
 (0)