From a34d7524d2c43d0d1451c7bb0a99b38f6a5f4270 Mon Sep 17 00:00:00 2001 From: Laurent Bartholdi Date: Tue, 19 Sep 2023 13:47:03 +0200 Subject: [PATCH] Fixed for Julia 1.11 --- Project.toml | 2 +- src/H5Sparse.jl | 6 +++--- test/runtests.jl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 2e68723..b87de61 100644 --- a/Project.toml +++ b/Project.toml @@ -4,11 +4,11 @@ authors = ["Albin Severinson and contributors"] version = "0.3.0" [deps] +H5Zblosc = "c8ec2601-a99c-407f-b158-e79c03c2f5f7" HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [compat] -HDF5 = "0.15" julia = "1" [extras] diff --git a/src/H5Sparse.jl b/src/H5Sparse.jl index b14869e..8dd4fc7 100644 --- a/src/H5Sparse.jl +++ b/src/H5Sparse.jl @@ -4,7 +4,7 @@ Support for out-of-core sparse arrays backed by a HDF5 file stored on disk. Prov """ module H5Sparse -using HDF5, SparseArrays +using HDF5, H5Zblosc, SparseArrays export H5SparseMatrixCSC @@ -66,7 +66,7 @@ struct H5SparseMatrixCSC{Tv, Ti<:Integer, Td<:HDF5.H5DataStore} <: SparseArrays. name::String # Dataset name, i.e., data is stored in fid[name] rows::UnitRange{Int} # Subset of rows stored in fid[name] accessible via this instance cols::UnitRange{Int} # Subset of columns stored in fid[name] accessible via this instance - function H5SparseMatrixCSC(fid::HDF5.H5DataStore, name::AbstractString, rows::UnitRange{Int}, cols::UnitRange{Int}) where {Tv,Ti<:Integer} + function H5SparseMatrixCSC(fid::HDF5.H5DataStore, name::AbstractString, rows::UnitRange{Int}, cols::UnitRange{Int}) # where {Tv,Ti<:Integer} name in keys(fid) || throw(ArgumentError("$name is not in $fid")) g = fid[name] g isa HDF5.Group || throw(ArgumentError("fid[name] is $g, but must be a HDF5.Group")) @@ -357,4 +357,4 @@ function h5isvalidcsc(filename::AbstractString, name::AbstractString) end end -end \ No newline at end of file +end diff --git a/test/runtests.jl b/test/runtests.jl index af95f86..a1a4c67 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,6 @@ using H5Sparse using Test -using HDF5, SparseArrays +using HDF5, H5Zblosc, SparseArrays @testset "H5Sparse.jl" begin B = sprand(10, 10, 0.5)