merge finiteCheck branches
This commit is contained in:
parent
e541c9ba1e
commit
0cd926ff8e
|
@ -1895,18 +1895,16 @@ def _arrayToQPath_all(x, y, finiteCheck):
|
||||||
if n == 0:
|
if n == 0:
|
||||||
return QtGui.QPainterPath()
|
return QtGui.QPainterPath()
|
||||||
|
|
||||||
|
backfill_idx = None
|
||||||
if finiteCheck:
|
if finiteCheck:
|
||||||
isfinite = np.isfinite(x) & np.isfinite(y)
|
isfinite = np.isfinite(x) & np.isfinite(y)
|
||||||
all_isfinite = np.all(isfinite)
|
if not np.all(isfinite):
|
||||||
|
backfill_idx = _compute_backfill_indices(isfinite)
|
||||||
|
|
||||||
chunksize = 10000
|
chunksize = 10000
|
||||||
numchunks = (n + chunksize - 1) // chunksize
|
numchunks = (n + chunksize - 1) // chunksize
|
||||||
minchunks = 3
|
minchunks = 3
|
||||||
|
|
||||||
backfill_idx = None
|
|
||||||
if finiteCheck and not all_isfinite:
|
|
||||||
backfill_idx = _compute_backfill_indices(isfinite)
|
|
||||||
|
|
||||||
if numchunks < minchunks:
|
if numchunks < minchunks:
|
||||||
# too few chunks, batching would be a pessimization
|
# too few chunks, batching would be a pessimization
|
||||||
poly = create_qpolygonf(n)
|
poly = create_qpolygonf(n)
|
||||||
|
|
Loading…
Reference in New Issue