-
Notifications
You must be signed in to change notification settings - Fork 134
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
Tropical variety overhaul #4061
base: master
Are you sure you want to change the base?
Conversation
0b3fb25
to
6ad31a3
Compare
Unfortunately now has a merged conflict in |
fdde04b
to
b582d0b
Compare
3c4e0a5
to
ee12369
Compare
A book test (from my chapter) is failing due to a syntax change in |
This sounds like a breaking change to me which we cannot do in 1.*? |
Unless it is a clear bugfix, the input in the booktests should keep working for all 1.x versions. Only the printing is allowed to change. Looking at the log there is also an error and not an output change: julia> TropV = tropical_variety(I,nu)
- 2-element Vector{TropicalVariety}:
- Min tropical variety
- Min tropical variety
+ ERROR: MethodError: no method matching tropical_variety_prime_singular(::MPolyIdeal{…}, ::TropicalSemiringMap{…}; weighted_polyhedral_complex_only::Bool)
+
+ Closest candidates are:
+ tropical_variety_prime_singular(::MPolyIdeal, !Matched::TropicalSemiringMap{QQField, ZZRingElem, <:Union{typeof(max), typeof(min)}}; weighted_polyhedral_complex_only)
+ @ Oscar ~/work/Oscar.jl/Oscar.jl/src/TropicalGeometry/variety_prime.jl:42
+ tropical_variety_prime_singular(::MPolyIdeal, !Matched::TropicalSemiringMap{QQField, Nothing, <:Union{typeof(max), typeof(min)}}; weighted_polyhedral_complex_only)
+ @ Oscar ~/work/Oscar.jl/Oscar.jl/src/TropicalGeometry/variety_prime.jl:23
+
+ Stacktrace:
+ [1] tropical_variety_prime(I::MPolyIdeal{…}, nu::TropicalSemiringMap{…}; weighted_polyhedral_complex_only::Bool)
+ @ Oscar ~/work/Oscar.jl/Oscar.jl/src/TropicalGeometry/variety_prime.jl:18
+ [2] tropical_variety(I::MPolyIdeal{…}, nu::TropicalSemiringMap{…}; weighted_polyhedral_complex_only::Bool)
+ @ Oscar ~/work/Oscar.jl/Oscar.jl/src/TropicalGeometry/variety.jl:209
+ [3] tropical_variety(I::MPolyIdeal{…}, nu::TropicalSemiringMap{…})
+ @ Oscar ~/work/Oscar.jl/Oscar.jl/src/TropicalGeometry/variety.jl:189
+ [4] top-level scope
+ @ REPL[51]:1
+ Some type information was truncated. Use `show(err)` to see complete types. |
Yes, I agree that it is a breaking change. So it will have to wait until 2.x then? |
Sounds like it, but in the end this is not for me to decide. Could you provide a reasonable version of this pull request without the breaking changes? By "reasonable", I mean both in terms of functionality but also the work that needs to be done. |
Yeah, the error is my bad. I'll try to fix it and produce something mergable this week, whether it is for 1.x or 2.x. |
ea7a111
to
03ada5d
Compare
There is still an error with a book chapter, is that due to an output change? The way That being said, as this is a breaking change, I should probably add suggestions to the error message what the user should be using instead of |
The actual error is in line 374 of the log (https://github.com/oscar-system/Oscar.jl/actions/runs/11896996464/job/33150243661?pr=4061#step:10:378):
|
e34ac99
to
ffad56f
Compare
Right, I have fixed the error message. It should now tell users to use |
ffad56f
to
b5e0bc1
Compare
I think the point @joschmitt wanted to make is this: would it be possible for you with reasonable effort (i.e. we are not asking you to spend days on this; hopefully this is something that can be done quickly) to change this PR so that it is not breaking the booktests? Presumably that would mean letting This way this PR could already be merged and the bulk of the changes would be in there. And then you could open a separate PR which probably would be very short and which turns the warning into an error again. That PR then could be added to a milestone for Oscar 2.0. |
I see, that is what @joschmitt meant. I can do that, but I'll take care of my two workshop PRs first. |
TropicalGeometry: beginning wrapping Singular's tropicalVariety TropicalGeometry: first draft of Singular's tropicalVariety wrapper TropicalGeometry: tropical_variety overhaul TropicalGeometry: shorten attributes copying TropicalGeometry: tropical_variety overhaul Update src/TropicalGeometry/variety_binomial.jl Co-authored-by: Max Horn <[email protected]> Update src/TropicalGeometry/variety_binomial.jl Co-authored-by: Max Horn <[email protected]> Update src/TropicalGeometry/variety_binomial.jl Co-authored-by: Max Horn <[email protected]> Update src/TropicalGeometry/variety_prime.jl Co-authored-by: Max Horn <[email protected]> Update src/TropicalGeometry/variety_zerodimensional.jl Co-authored-by: Max Horn <[email protected]> Update src/TropicalGeometry/variety_affine_linear.jl Co-authored-by: Max Horn <[email protected]> Update src/TropicalGeometry/variety_principal.jl Co-authored-by: Max Horn <[email protected]> Udate src/TropicalGeometry/variety_binomial.jl TropicalGeometry: resolved merge conflict TropicalGeometry: changed attribute inheritance new: tropical_varieties and primary check in tropical_variety fix: missing stable_intersection in documentation fix: improved error message
b5e0bc1
to
c343528
Compare
New feature: Interface to
tropicalVariety
in Singular for tropicalization of ideals.