Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dispatch on abstract type H5DataStore #3

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

tbenst
Copy link
Contributor

@tbenst tbenst commented Aug 16, 2021

This allows for H5Sparse to use other notions of HDF5 datastores, like HDF5.File, HDF5.Group, JldFile, JldGroup, Matlabv5File, and MatlabHDF5File.

All tests pass on my local machine.

@severinson
Copy link
Owner

Hey. Nice work. I'll happily merge the pull request. Should we add a type parameter to H5SparseMatrixCSC to avoid type instability though? I.e., the definition would be struct H5SparseMatrixCSC{Tv, Ti<:Integer, Td<:HDF5.H5DataStore} <: SparseArrays.AbstractSparseMatrixCSC{Tv, Ti}, and fid::HDF5.H5DataStore would become fid::Td.

@tbenst
Copy link
Contributor Author

tbenst commented Aug 17, 2021

sure, let me know if I got that right!

src/H5Sparse.jl Outdated Show resolved Hide resolved
src/H5Sparse.jl Outdated Show resolved Hide resolved
@severinson
Copy link
Owner

Awesome. I'll merge it :)

@severinson severinson merged commit 579affa into severinson:master Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants