Skip to content

Commit 21abe09

Browse files
committed
fix getinds
1 parent e38b0a5 commit 21abe09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uncertainty_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ function blocksort(P::UncertainSS)
582582
end
583583

584584
function getinds(blocks::Vector{Vector{Int}}, d::Int)
585-
lengths = [b[2] <= 1 ? 1 : b[d] for b in blocks]
585+
lengths = [b[2] <= 1 ? b[1] : b[d] for b in blocks]
586586
endinds = cumsum(lengths)
587587
startinds = [1; endinds[1:end-1] .+ 1]
588588
inds = UnitRange.(0 .+ startinds, lengths .+ startinds .- 1)

0 commit comments

Comments
 (0)