Skip to content

Commit 6962fe9

Browse files
authored
fix int (#288)
1 parent cd2f074 commit 6962fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surfer/viz.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2909,8 +2909,8 @@ def _get_fill_colors(cols, n_fill):
29092909
if ind.size > 0:
29102910
# choose the two colors between which there is the large step
29112911
ind = ind[0] + 1
2912-
fillcols = np.r_[np.tile(cols[ind, :], (n_fill / 2, 1)),
2913-
np.tile(cols[ind + 1, :], (n_fill - n_fill / 2, 1))]
2912+
fillcols = np.r_[np.tile(cols[ind, :], (n_fill // 2, 1)),
2913+
np.tile(cols[ind + 1, :], (n_fill - n_fill // 2, 1))]
29142914
else:
29152915
# choose a color from the middle of the colormap
29162916
fillcols = np.tile(cols[int(cols.shape[0] / 2), :], (n_fill, 1))

0 commit comments

Comments
 (0)