Closed duoan closed 6 years ago
~/.pyenv/versions/stats36/lib/python3.6/site-packages/h5sparse/h5sparse.py in create_dataset(self, name, shape, dtype, data, format, indptr_dtype, indices_dtype, **kwargs)
69 else:
70 group = self.h5py_group.create_group(name)
---> 71 group.attrs['h5sparse_format'] = get_format_str(data)
72 group.attrs['h5sparse_shape'] = data.shape
73 group.create_dataset('data', data=data.data, dtype=dtype, **kwargs)
~/.pyenv/versions/stats36/lib/python3.6/site-packages/h5sparse/h5sparse.py in get_format_str(data)
15 if isinstance(data, format_class):
16 return format_str
---> 17 raise ValueError("Data type {} is not supported.".format(type(data)))
18
19
ValueError: Data type <class 'list'> is not supported.
I mean h5sparse is a extend for h5py added sparse data feature and support other all feature like h5py.
If I'm wrong, please correct me.
We currently only support Scipy sparse matrix. It's simply a POC about combining HDF5 with sparse matrix. We still need much more effort to integrate with full h5py functions, but we are not actively contributing to this project now.
implemented in #8
Thanks @appier I can add sparse data with h5sparse, but can add array or list and other type data into h5sparse File.