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
readwrite.jl tests have unsafe file closure behavior. Because of the manual file open and close, if an error occures close doesn't get called. Then anything else calling the file data.h5 will fail (on v0.3.20 and prior only).
I have two suggestions for fixes: 1) the do file method outlined on the HDF5.jl readme or 2) include unique filenames for each file and remove them all at the end. My personal vote is 1) and I'm happy to open a PR either way
Suggested Fix
h5open("data.h5", "w") do fo
Δ =δ(i, i')
cΔ =δ(ComplexF64, i, i')
fo["delta_tensor"] = Δ
fo["c_delta_tensor"] = cΔ
end
I think ITensors/NDTensors needs a new release for the diag HDF5 machinery to be included from 400a794. When I use the dev version (] dev NDTensors) all the tests pass
(PR incoming for the tests)
Description of bug
readwrite.jl
tests have unsafe file closure behavior. Because of the manual file open and close, if an error occuresclose
doesn't get called. Then anything else calling the filedata.h5
will fail (on v0.3.20 and prior only).Minimal runnable code
I have two suggestions for fixes: 1) the
do file
method outlined on the HDF5.jl readme or 2) include unique filenames for each file and remove them all at the end. My personal vote is 1) and I'm happy to open a PR either waySuggested Fix
Version information
versioninfo()
:using Pkg; Pkg.status("ITensors")
:(Thanks JanReimers on the forum for noticing this)
The text was updated successfully, but these errors were encountered: