GalPerelman
GalPerelman
@dbhart Thanks for your response and the suggested solution, it seems that this will do the work for my needs Let me know if there is anything I can do...
@LittleBrize The epanet toolkit is written in C and gets its input with parameters of C types Python float and C double* are not exactly the same which causes this...
@skosch Have you found a solution for this type of constraint? I'm facing a similar problem
Has anyone been able to find a workaround for this issue?
I found that `np.asmatrix` solves the problem As simple as: `A = np.asmatrix([[1., 2., 0],[1., 0, 1.]])` The NumPy documentation does not contain the warning about future use: https://numpy.org/doc/stable/reference/generated/numpy.asmatrix.html
@akeeman you are absolutely right I should have had to check it out myself
For future similar questions, I'm using this workaround: ``` from scipy import sparse A= sparse.csr_matrix(A) ```