JWock82 / Pynite

A 3D structural engineering finite element library for Python.
MIT License
454 stars 93 forks source link

PendingDeprecationWarning: matrix subclass to be deprecated #146

Closed connorferster closed 1 year ago

connorferster commented 1 year ago

Describe the bug When running an analysis, I was recently greeted with the following warning:

PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    dirCos = matrix([x, y, z])

To Reproduce I think this comes up with any analysis.

Proposed solution I think this can be fixed just by substituting array for matrix to build a regular numpy.ndarray. I will submit a PR for this fix.

connorferster commented 1 year ago

Resolved in #147