-
Notifications
You must be signed in to change notification settings - Fork 162
TropicalGeometry: fix tropical_variety_prime_singular #5397
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
base: master
Are you sure you want to change the base?
Conversation
added function to make variable names singular compatible. fixes oscar-system#5392
|
apart from this working, this is still a cludge |
|
Can you add the example from the issue as a testcase? |
Is done! |
Co-authored-by: Lars Göttgens <[email protected]>
removed the conversion of Oscar ideal to Singular via string
|
I've now replaced the original dirty hack with the suggestion by @fingolfin. No conversion of an OSCAR ideal to a Singular string necessary anymore, but the need to call the Singular interpreter and the conversion of a Singular fan string to an OSCAR polyhedral complex remain. |
4f3baaa to
032aae9
Compare
|
@fingolfin Everything should be using |
|
Thanks @YueRen this looks good. Unfortunately it seems to cause a crash :-( in CI, in the doctests: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5397 +/- ##
==========================================
- Coverage 84.20% 77.98% -6.23%
==========================================
Files 717 731 +14
Lines 97992 103333 +5341
==========================================
- Hits 82519 80589 -1930
- Misses 15473 22744 +7271
🚀 New features to boost your workflow:
|
|
The crash is in a doctest in julia> K,t = rational_function_field(GF(101),:t);
julia> R,(x,y,z) = K["x","y","z"];
julia> nu_2 = tropical_semiring_map(QQ,2)
Map into Min tropical semiring encoding the 2-adic valuation on Rational field
julia> f1 = 8*x^2 + x*y + x*z + x + 8*y^2 + y*z + y + 8*z^2 + z + 8;
julia> f2 = x + 2;
julia> I = ideal([f1,f2]);
julia> TropI_2 = tropical_variety(I,nu_2; skip_saturation=true, skip_decomposition=true)
[76002] signal 11 (2): Segmentation fault: 11
in expression starting at REPL[13]:1
unknown function (ip: 0x0) at (unknown file)
Allocations: 99607851 (Pool: 99573602; Big: 34249); GC: 34
/Users/mhorn/.local/bin/j12: line 2: 76002 Segmentation fault: 11 julia +1.12 --proj=p/1.12 "$@"Debugger backtrace: Perhaps @hannes14 or @YueRen can make something out of this. |
added function to make variable names singular compatible. fixes #5392