Skip to content

read!( ) not working for HDF5 file #1200

@raman-maker

Description

@raman-maker

I have an HDF5 file. I open it as

h5 = h5open(h5file, "r")

and initialize r as

r = zeros(Float32,18)

when i read!() fuction

read!((h5["x1v"])[:, 1], r)

i get following error.

ERROR: LoadError: MethodError: no method matching read!(::Vector{Float32}, ::Vector{Float32})
The function read! exists, but no method is defined for this combination of argument types.

How to make it read so that to reduce allocations? I have posted this issue on Julia discourse https://discourse.julialang.org/t/read-not-working-for-hdf5-file/129722

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions