Skip to content

Commit

Permalink
BUG: new scipy sparse coo_matrix() requires np.array for complex data…
Browse files Browse the repository at this point in the history
… input (was just a list)
  • Loading branch information
twmacro committed Mar 20, 2021
1 parent 8a4a8de commit f167745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyyeti/nastran/op4.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def _put_ascii_values_sparse_c(X, r, c, s, L, numlen):
@staticmethod
def _sparse_matrix(rows, cols, X):
I, J, V = X
return sp.coo_matrix((V, (I, J)), shape=(rows, cols))
return sp.coo_matrix((np.array(V), (I, J)), shape=(rows, cols))

def _rd_dense_ascii(
self, wper, r, c, rows, cols, line, numlen, perline, linelen, funcs
Expand Down

0 comments on commit f167745

Please sign in to comment.