Skip to content

Commit

Permalink
decode layout attribute as utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Feb 7, 2024
1 parent a021baa commit de51c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dolomite_matrix/read_compressed_sparse_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def read_compressed_sparse_matrix(path: str, metadata: Dict[str, Any], **kwargs)
if not numpy.issubdtype(dhandle.dtype, numpy.floating):
dtype = numpy.dtype("float64")

layout = ghandle.attrs["layout"]
layout = ghandle.attrs["layout"].decode("UTF8")
shape = (*[int(y) for y in ghandle["shape"]],)

placeholder = None
Expand Down

0 comments on commit de51c3f

Please sign in to comment.