Update matrix.py

the numpy astype method seems to want the argument 'str' rather than 'string'
This commit is contained in:
sswatson 2018-11-21 08:44:48 -05:00 committed by GitHub
parent d12e45aa17
commit 566b5be488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ VECTOR_LABEL_SCALE_FACTOR = 0.8
def matrix_to_tex_string(matrix):
matrix = np.array(matrix).astype("string")
matrix = np.array(matrix).astype("str")
if matrix.ndim == 1:
matrix = matrix.reshape((matrix.size, 1))
n_rows, n_cols = matrix.shape