-
Notifications
You must be signed in to change notification settings - Fork 75
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
Breaking change introduced by #487 #493
Comments
Sorry, that was supposed to be an implementation detail and not a breaking change. It was introduced to make consistent with how we chop trailing 0s. But has this unintended consequence. Let me look to correcting it and add ControlSystems to the packages tested so as not to introduce any new breakage moving forward. |
So, I realize you made a change to |
The workaround in CS is ok for our purposes, and I much appreciate the downstream testing :) |
I think this affects us in BSeries.jl, too. With Polynomials.jl v3.2.8, I get (BSeries) pkg> add Polynomials@v3.2.8
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Updating `~/.julia/dev/BSeries/Project.toml`
⌃ [f27b6e38] ↓ Polynomials v3.2.9 ⇒ v3.2.8
Updating `~/.julia/dev/BSeries/Manifest.toml`
⌃ [f27b6e38] ↓ Polynomials v3.2.9 ⇒ v3.2.8
Info Packages marked with ⌃ have new versions available and may be upgradable.
Precompiling environment...
1 dependency successfully precompiled in 3 seconds. 12 already precompiled.
julia> using Polynomials
julia> v = Polynomial{Rational{Int}, :x}([0//1])
Polynomial(0//1)
julia> integrate(v)
Polynomial(0//1) With Polynomials.jl v3.2.9, I get (BSeries) pkg> add Polynomials@v3.2.9
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Updating `~/.julia/dev/BSeries/Project.toml`
[f27b6e38] ↑ Polynomials v3.2.8 ⇒ v3.2.9
Updating `~/.julia/dev/BSeries/Manifest.toml`
[f27b6e38] ↑ Polynomials v3.2.8 ⇒ v3.2.9
Precompiling environment...
1 dependency successfully precompiled in 3 seconds. 12 already precompiled.
julia> using Polynomials
julia> v = Polynomial{Rational{Int}, :x}([0//1])
Polynomial(0//1)
julia> integrate(v)
Polynomial(0.0) Note that the return type of |
Thanks. That is a slightly different issue and one that definitely needs to get fixed. I'll try and get a PR to do so soon. |
Great, thanks! |
The issue in BSeries.jl should be closed with #496 |
Thanks a lot for the quick fix! I will restart CI with the new version of Polynomials.jl. |
This PR introduced a breaking change
more specifically,
This broke downstream use in ControlSystems.jl. The change does not really make total sense to me, these two polynomials should have the same number of coefficients, they only differ in their numerical values
0 is a coefficient after all and
0 != nothing
. In particular since a 0 is returned for the 0:th degree coefficient in this case, introducing an inconsistencyThe text was updated successfully, but these errors were encountered: