Skip to content

Fix VertexHistogram sparse dtype for scipy compatibility#126

Open
JohnLyu2 wants to merge 1 commit intoysig:masterfrom
JohnLyu2:fix-vertex-histogram-sparse-dtype
Open

Fix VertexHistogram sparse dtype for scipy compatibility#126
JohnLyu2 wants to merge 1 commit intoysig:masterfrom
JohnLyu2:fix-vertex-histogram-sparse-dtype

Conversation

@JohnLyu2
Copy link

Use dtype="float64" instead of dtype=">f8" in csr_matrix() so that scipy.sparse accepts the matrix (scipy 1.17.0 does not support >f8). Fix #125

Use dtype="float64" instead of dtype=">f8" in csr_matrix() so that
scipy.sparse accepts the matrix (it does not support big-endian float64).

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

ValueError when VertexHistogram uses sparse matrices (dtype >f8 not supported by scipy.sparse)

1 participant