Fix Numpy FutureWarning. Try again.

This commit is contained in:
u55 2016-01-11 23:30:23 -07:00
parent 2c415a8b03
commit 2f2975212f

View File

@ -1312,6 +1312,7 @@ def arrayToQPath(x, y, connect='all'):
connect[:,0] = 1 connect[:,0] = 1
connect[:,1] = 0 connect[:,1] = 0
connect = connect.flatten() connect = connect.flatten()
arr[1:-1]['c'] = connect
elif connect == 'finite': elif connect == 'finite':
connect = np.isfinite(x) & np.isfinite(y) connect = np.isfinite(x) & np.isfinite(y)
arr[1:-1]['c'] = connect arr[1:-1]['c'] = connect