Merge pull request #1353 from wkearn/wsk-bugfix-1329

Check if any of the iterator args are zero
This commit is contained in:
Daniel Schwabeneder 2018-01-15 14:34:49 +01:00 committed by GitHub
commit edf88ffdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ allnan(istart::Int, iend::Int, args::Tuple) = all(i -> anynan(i, args), istart:i
function Base.start(itr::SegmentsIterator)
nextidx = 1
if anynan(1, itr.args)
if !any(isempty,itr.args) && anynan(1, itr.args)
_, nextidx = next(itr, 1)
end
nextidx