Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NumPy matrix class #913

Merged
merged 4 commits into from
Jun 18, 2023

Conversation

murrayrm
Copy link
Member

This PR removes the use of the NumPy matrix class from python-control. The main changes are:

  • The use_numpy_matrix function is no longer available.
  • The use of MATLAB-style matrix strings ("[[1 2; 3 4]]") is no longer supported.
  • The use_legacy_defaults function returns a warning if the version is pre-0.9 (since those versions used the np.matrix type for state space systems).
  • Unit tests and CI tests were updated to remove testing against np.matrix.
  • Docstrings and documentation were updated to be compatible with the above changes.

@coveralls
Copy link

Coverage Status

coverage: 94.613% (+0.006%) from 94.607% when pulling 77a75a6 on murrayrm:remove_matrix-10Jun2023 into 71bbce2 on python-control:main.

@murrayrm murrayrm merged commit 8c49b09 into python-control:main Jun 18, 2023
14 checks passed
@murrayrm murrayrm added this to the 0.10.0 milestone Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants