Skip to content

Fix canonical form 'observable'#200

Merged
murrayrm merged 2 commits into
python-control:masterfrom
lorenz-halt:master
Jul 2, 2018
Merged

Fix canonical form 'observable'#200
murrayrm merged 2 commits into
python-control:masterfrom
lorenz-halt:master

Conversation

@lorenz-halt

Copy link
Copy Markdown

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

coveralls commented Apr 18, 2018

Copy link
Copy Markdown

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
Copy Markdown

Coverage Status

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

Comment thread control/canonical.py Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
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