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

Skip to content

Commit d1947ce

Browse files
authored
Merge pull request #8488 from anntzer/one-fewer-travis-job
Build docs with oldest numpy on 2.7.
2 parents 5ffe804 + 5d64f54 commit d1947ce

File tree

3 files changed

+6
-36
lines changed

3 files changed

+6
-36
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ matrix:
5555
- python: 2.7
5656
env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas NOSE=nose
5757
- python: 2.7
58-
env: BUILD_DOCS=true
58+
env: NUMPY=numpy==1.7.1 BUILD_DOCS=true
5959
- python: 3.4
6060
env: PYTHON_ARGS=-OO
6161
- 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)