We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89646f1 commit cf46710Copy full SHA for cf46710
mpython/core/mixin_types.py
@@ -92,9 +92,7 @@ def _from_runtime(cls, dictobj: dict):
92
else:
93
dtype = _matlab_array_types()[type(dictobj["values__"])]
94
indices = np.asarray(dictobj["indices__"], dtype=np.long)
95
- # print('from_matlab', indices.shape)
96
values = np.asarray(dictobj["values__"], dtype=dtype).ravel()
97
- # indices = indices.reshape([ndim, -1])
98
indices -= 1
99
if indices.size == 0:
100
indices = indices.reshape([0, ndim])
@@ -107,7 +105,6 @@ def _from_runtime(cls, dictobj: dict):
107
105
# but this should probably be fixed in mpython_endpoint
108
106
# as well.
109
indices = indices.reshape([ndim, -1]).T
110
- # print(indices)
111
return cls.from_coo(values, indices.T, size)
112
113
0 commit comments