Skip to content

Commit e1c627c

Browse files
committed
feat: merge PR aimacode#1289
1 parent 496ea45 commit e1c627c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

notebook.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ def plot_NQueens(solution):
10611061
board = np.array([2 * int((i + j) % 2) for j in range(n) for i in range(n)]).reshape((n, n))
10621062
im = Image.open('images/queen_s.png')
10631063
height = im.size[1]
1064-
im = np.array(im).astype(np.float) / 255
1064+
im = np.array(im).astype(np.float64) / 255
10651065
fig = plt.figure(figsize=(7, 7))
10661066
ax = fig.add_subplot(111)
10671067
ax.set_title('{} Queens'.format(n))

notebook4e.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ def plot_NQueens(solution):
11011101
board = np.array([2 * int((i + j) % 2) for j in range(n) for i in range(n)]).reshape((n, n))
11021102
im = Image.open('images/queen_s.png')
11031103
height = im.size[1]
1104-
im = np.array(im).astype(np.float) / 255
1104+
im = np.array(im).astype(np.float64) / 255
11051105
fig = plt.figure(figsize=(7, 7))
11061106
ax = fig.add_subplot(111)
11071107
ax.set_title('{} Queens'.format(n))

0 commit comments

Comments
 (0)