-
Notifications
You must be signed in to change notification settings - Fork 438
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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. |
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 |
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
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 of https://build.opensuse.org/package/show/home:bnavigator:branches:devel:languages:python:numeric/python-control