Skip to content

Fix canonical form 'observable' #200

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

Merged
merged 2 commits into from
Jul 2, 2018
Merged

Conversation

ipa-lth
Copy link
Contributor

@ipa-lth ipa-lth commented Apr 18, 2018

Minor fix to use 'solve' instead of 'inv'.
Asserts with prio 'inv' from (numpy.linalg.inv was also not imported, yet not needed anymore)

@coveralls
Copy link

coveralls commented Apr 18, 2018

Coverage Status

Coverage increased (+0.5%) to 78.408% when pulling 5009e92 on ipa-lth:master into 601b581 on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 77.882% when pulling 598a91a on ipa-lth:master into 601b581 on python-control:master.

@@ -133,7 +133,7 @@ def observable_form(xsys):
Wrz = obsv(zsys.A, zsys.C)

# Transformation from one form to another
Tzx = inv(Wrz) * Wrx
Tzx = solve(Wrz, Wrx) # matrix right division, Tzx = inv(Wrz) * Wrx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks right. I see there are no tests for observable_form - would you mind adding one?

This would be left division in Matlab's terminology

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. See my update

@murrayrm murrayrm added this to the 0.8.0 milestone Jun 30, 2018
@murrayrm murrayrm merged commit 077a8bc into python-control:master Jul 2, 2018
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.

4 participants