JuliaIO / HDF5.jl

Save and load data in the HDF5 file format from Julia
https://juliaio.github.io/HDF5.jl
MIT License
380 stars 138 forks source link

View to a subset of a dataset #1150

Open linwaytin opened 2 months ago

linwaytin commented 2 months ago

I can have ds[1:5, 2] = rand(5, 2) to write into a subset of a dataset. However, @views dsv = ds[1:5, 2] does not work as expected.

What I really want is a way to pass the view to a function, such that the view information is included in like dsv. Is there a way to do that in HDF5.jl?

mkitti commented 2 months ago

In the HDF5 terminology these are called references. I thought we had worked on this.