You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low priority, QOL issue. The constructors could throw an error if the column sizes don't match. Currently they are quietly accepted until the table is shown/acessed, and then:
julia> t = Table(a = [1, 2, 3], b = [2.0, 4.0])
Table with 2 columns and 3 rowsError showing value of type Table{NamedTuple{(:a, :b), Tuple{Int64, Float64}}, 1, NamedTuple{(:a, :b), Tuple{Vector{Int64}, Vector{Float64}}}}:
ERROR: BoundsError: attempt to access 3-element Table{NamedTuple{(:a, :b), Tuple{Int64, Float64}}, 1, NamedTuple{(:a, :b), Tuple{Vector{Int64}, Vector{Float64}}}} at index [3]
Stacktrace:
[1] throw_boundserror(A::Table{NamedTuple{(:a, :b), Tuple{Int64, Float64}}, 1, NamedTuple{(:a, :b), Tuple{Vector{Int64}, Vector{Float64}}}}, I::Tuple{Int64})
@ Base ./abstractarray.jl:691
[2] checkbounds
@ ./abstractarray.jl:656 [inlined]
[3] getindex(t::Table{NamedTuple{(:a, :b), Tuple{Int64, Float64}}, 1, NamedTuple{(:a, :b), Tuple{Vector{Int64}, Vector{Float64}}}}, i::Int64)
@ TypedTables ~/vcs/TypedTables.jl/src/Table.jl:128
[4] showtable(io::IOContext{Base.TTY}, t::Any, keyname::Nothing)
@ TypedTables ~/vcs/TypedTables.jl/src/show.jl:141
[5] showtable
@ ~/vcs/TypedTables.jl/src/show.jl:102 [inlined]
[...]
The text was updated successfully, but these errors were encountered:
Low priority, QOL issue. The constructors could throw an error if the column sizes don't match. Currently they are quietly accepted until the table is shown/acessed, and then:
The text was updated successfully, but these errors were encountered: