meggart / DiskArrays.jl

Other
72 stars 13 forks source link

Indexing with not enough dimensions does not error #155

Closed felixcremer closed 6 months ago

felixcremer commented 6 months ago

On current master trying to access a DiskArray with not enough indices does not error but normal arrays error and DiskArrays used to error.

julia> using DiskArrays.TestTypes

julia> u = UnchunkedDiskArray(rand(275,305,36))
275×305×36 UnchunkedDiskArray{Float64, 3, Array{Float64, 3}}

Unchunked

julia> u[1,1] # would have expected a BoundsError here
0.6956590014976399
meggart commented 6 months ago

This only occurs for all-integer indices

u[1:100,1] 

errors

meggart commented 6 months ago

See #156