- Notifications
You must be signed in to change notification settings - Fork441
change root precision tolerance and imaginary detection in xferfcn._common_den()#345
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
coveralls commentedNov 9, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
coveralls commentedNov 9, 2019
I don't understand why the unit test coverage is going down so much as a result of these changes. Everything looks OK; will merge in a few days unless anyone has objections. |
jgspiro commentedNov 18, 2019
Coverage : I don't understand it fully either, after comparing the results of the last master build vs. this pull request. Coveralls might be giving down points because the newly added |
Coverage goes down because the new warning line about the nontrivial imaginary part is not reached by the test. The more I think about it, I don't like the way the function discards the imaginary part. There should still be a warning that the result has imaginary coefficients, because the SLICOT routines asking for a common den cannot handle it, but they should not be discarded. Also I would like to get rid of the I would like to write some more extensive unit tests to check the proper calculation of common denominators and also the warnings before this is to be merged. |
This would explain coverage going down a small amount, but 3% (of the entire code base)? Seems off. I agree on the desire to do something sensible with |
bnavigator commentedNov 18, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think it is because some of the configured travis jobs without slycot skip most unit tests. (#349) |
renamed the np variable because that is used as numpy otherwise
bnavigator commentedNov 27, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I made some modifications and added an unit test. Please review.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Reviewed the code. Changes look good.
Confirmed that unit tests are working with PR#353 => ready to merge. |
My attempt of fixing#343
See also the result logs ofhttps://build.opensuse.org/package/show/home:bnavigator:branches:devel:languages:python:numeric/python-control