From 5165bd3a66f5f3cf1cf955d852bf8a73de2ecc72 Mon Sep 17 00:00:00 2001 From: Willow Ahrens Date: Sun, 19 May 2024 12:19:14 -0400 Subject: [PATCH 1/3] oops --- src/interface/fileio/binsparse.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/fileio/binsparse.jl b/src/interface/fileio/binsparse.jl index 06b6f5c62..f73008756 100644 --- a/src/interface/fileio/binsparse.jl +++ b/src/interface/fileio/binsparse.jl @@ -313,7 +313,7 @@ function bspread_header end function bspread(f) desc = bspread_header(f)["binsparse"] @assert desc["version"] == "$BINSPARSE_VERSION" - fmt = OrderedDict{Any, Any}(get(() -> desc["tensor"], bspread_tensor_lookup, desc["format"])) + fmt = OrderedDict{Any, Any}(get(() -> bspread_tensor_lookup[desc["format"]], desc, "tensor")) if !haskey(fmt, "transpose") fmt["transpose"] = collect(0:length(desc["shape"]) - 1) end From 8faf5a11509311f336b902b58a8f2288e9d42e42 Mon Sep 17 00:00:00 2001 From: Willow Ahrens Date: Sun, 19 May 2024 12:20:49 -0400 Subject: [PATCH 2/3] quick test --- test/test_fileio.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_fileio.jl b/test/test_fileio.jl index 8b017ae36..c7bb45cf6 100644 --- a/test/test_fileio.jl +++ b/test/test_fileio.jl @@ -53,6 +53,13 @@ using Pkg end end end + + B = fsprand(100, 100, 100, 0.1) + @testset "binsparse COO3" begin + fname = joinpath(f, "foo.bsp.h5") + bspwrite(fname, B) + @test Structure(B) == Structure(bspread(B)) + end end end From a48609dec5e5f62e00ea6f67849703b5f8d800dc Mon Sep 17 00:00:00 2001 From: Willow Ahrens Date: Sun, 19 May 2024 12:27:25 -0400 Subject: [PATCH 3/3] oops --- test/test_fileio.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_fileio.jl b/test/test_fileio.jl index c7bb45cf6..99898c508 100644 --- a/test/test_fileio.jl +++ b/test/test_fileio.jl @@ -58,7 +58,7 @@ using Pkg @testset "binsparse COO3" begin fname = joinpath(f, "foo.bsp.h5") bspwrite(fname, B) - @test Structure(B) == Structure(bspread(B)) + @test Structure(B) == Structure(bspread(fname)) end end end