Fix Numpy FutureWarning. Try again.
This commit is contained in:
parent
2c415a8b03
commit
2f2975212f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user