I have an HDF5 file I'd like to read 2 arrays from. How can I get them using the do block notation?
using HDF5
function myfunc()
h5open("path", "r") do f
a = read(f, "a")
b = read(f, "b")
end
# ... do some more processing of a, b
return a, b
end
If I run that, it will error after the do block with a not defined. How do I get the values so I can process them after, without wrapping the full computation in the do block?