Merge pull request #1353 from wkearn/wsk-bugfix-1329
Check if any of the iterator args are zero
This commit is contained in:
commit
edf88ffdf6
@ -199,7 +199,7 @@ allnan(istart::Int, iend::Int, args::Tuple) = all(i -> anynan(i, args), istart:i
|
|||||||
|
|
||||||
function Base.start(itr::SegmentsIterator)
|
function Base.start(itr::SegmentsIterator)
|
||||||
nextidx = 1
|
nextidx = 1
|
||||||
if anynan(1, itr.args)
|
if !any(isempty,itr.args) && anynan(1, itr.args)
|
||||||
_, nextidx = next(itr, 1)
|
_, nextidx = next(itr, 1)
|
||||||
end
|
end
|
||||||
nextidx
|
nextidx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user