Overhaul tropical varieties, add various new options#4061
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. |
|
The conflict has been resolved. Is this ready for a review then, @YueRen ? |
|
@fingolfin I've double checked everything and I'm happy to merge this PR. Just to re-iterate: The command |
f0742a9 to
4fcd858
Compare
|
There were some failing test were that are unrelated to my code. I've rebased the PR to the latest master, hopefully that fixes the issue. |
|
Everything related to julia nightly is currently expected to fail. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4061 +/- ##
==========================================
- Coverage 84.94% 84.93% -0.01%
==========================================
Files 686 691 +5
Lines 92258 92309 +51
==========================================
+ Hits 78364 78402 +38
- Misses 13894 13907 +13
🚀 New features to boost your workflow:
|
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 <max@quendi.de> Update src/TropicalGeometry/variety_binomial.jl Co-authored-by: Max Horn <max@quendi.de> Update src/TropicalGeometry/variety_binomial.jl Co-authored-by: Max Horn <max@quendi.de> Update src/TropicalGeometry/variety_prime.jl Co-authored-by: Max Horn <max@quendi.de> Update src/TropicalGeometry/variety_zerodimensional.jl Co-authored-by: Max Horn <max@quendi.de> Update src/TropicalGeometry/variety_affine_linear.jl Co-authored-by: Max Horn <max@quendi.de> Update src/TropicalGeometry/variety_principal.jl Co-authored-by: Max Horn <max@quendi.de> 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
Co-authored-by: Johannes Schmitt <johannes.schmitt@ruhr-uni-bochum.de>
4fcd858 to
f0d0162
Compare
|
I've rebased the changes now and the only book tests that are failing are pertaining to areas that this PR is not touching. Is there anything else left to do before this PR can be merged? |
Someone needs to review it :) |
|
@micjoswig Would you be able to review the PR? Here are the major changes:
|
@ooinaruhugh : you had a closer look. Happy? |
@micjoswig @YueRen I tried some examples and looks good. |
|
This PR had a |
|
Seems fine to me, perhaps @YueRen has another wish? |
|
Sounds good, thanks @lgoettgens @fingolfin |
New feature: Interface to
tropicalVarietyin Singular for tropicalization of ideals.