Loading numerical_labelling/labelling.py +5 −2 Original line number Diff line number Diff line Loading @@ -137,7 +137,10 @@ def observability_redundancy_labelling_rref(J, bool_measured,x0={}, debug=False, # convert to int matrix J = sy.Matrix(np.matrix(J).astype(int)) # ensure jacobian columns are all accounted for if len(bool_measured) != J.shape[1]: jac_layout_err_msg = f"Jacobian columns: {J.shape[1]} doesn' match layout columns: {len(bool_measured)}" raise ValueError(jac_layout_err_msg) bool_measured = np.array(bool_measured).astype(bool) Jm = J[:, list(np.where(bool_measured)[0])] Loading Loading
numerical_labelling/labelling.py +5 −2 Original line number Diff line number Diff line Loading @@ -137,7 +137,10 @@ def observability_redundancy_labelling_rref(J, bool_measured,x0={}, debug=False, # convert to int matrix J = sy.Matrix(np.matrix(J).astype(int)) # ensure jacobian columns are all accounted for if len(bool_measured) != J.shape[1]: jac_layout_err_msg = f"Jacobian columns: {J.shape[1]} doesn' match layout columns: {len(bool_measured)}" raise ValueError(jac_layout_err_msg) bool_measured = np.array(bool_measured).astype(bool) Jm = J[:, list(np.where(bool_measured)[0])] Loading