File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1061,7 +1061,7 @@ def plot_NQueens(solution):
1061
1061
board = np .array ([2 * int ((i + j ) % 2 ) for j in range (n ) for i in range (n )]).reshape ((n , n ))
1062
1062
im = Image .open ('images/queen_s.png' )
1063
1063
height = im .size [1 ]
1064
- im = np .array (im ).astype (np .float ) / 255
1064
+ im = np .array (im ).astype (np .float64 ) / 255
1065
1065
fig = plt .figure (figsize = (7 , 7 ))
1066
1066
ax = fig .add_subplot (111 )
1067
1067
ax .set_title ('{} Queens' .format (n ))
Original file line number Diff line number Diff line change @@ -1101,7 +1101,7 @@ def plot_NQueens(solution):
1101
1101
board = np .array ([2 * int ((i + j ) % 2 ) for j in range (n ) for i in range (n )]).reshape ((n , n ))
1102
1102
im = Image .open ('images/queen_s.png' )
1103
1103
height = im .size [1 ]
1104
- im = np .array (im ).astype (np .float ) / 255
1104
+ im = np .array (im ).astype (np .float64 ) / 255
1105
1105
fig = plt .figure (figsize = (7 , 7 ))
1106
1106
ax = fig .add_subplot (111 )
1107
1107
ax .set_title ('{} Queens' .format (n ))
You can’t perform that action at this time.
0 commit comments