-
Notifications
You must be signed in to change notification settings - Fork 132
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
yr/tropicalBasics #2832
yr/tropicalBasics #2832
Conversation
30898ff
to
bb074fb
Compare
2f7b703
to
b8dec7f
Compare
Some of the doctest is failing because OSCAR is printing out a set and the other of the element is different. Is there a way to take these documentations out of the doctest? |
On Mon, Oct 09, 2023 at 03:19:23AM -0700, YueRen wrote:
Some of the doctest is failing because OSCAR is printing out a set and the other of the element is different. Is there a way to take these documentations out of the doctest?
Yep. You can add regular expressions to add and ignore
DocTestFilters = r"Group\(.*\]\)"
e.g. in docs/src/NumberTheory/galois.md
this removed the comparison of groups as the generators are randomized
… --
Reply to this email directly or view it on GitHub:
#2832 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
c20c72e
to
c832825
Compare
What do I have to do in order to get the tests running on github. I want to check whether there are any more failing tests. |
The tests will run once you fix the merge conflicts. |
So I will need to rebase it again? But how can there be merge conflicts? Did somebody change those files in the tropical folder in the last 48h? |
That is one way to fix it (and how I would do it). Presumably, you can also hit "resolve conflicts" below, but I have never done that before. |
The conflicts are in the following files: src/TropicalGeometry/initial.jl
src/TropicalGeometry/linear_space.jl
src/TropicalGeometry/valuation.jl
src/TropicalGeometry/variety.jl The last commit that edited the file
(In case you wonder, I found this via |
Got it, I was just majorly confused. |
There are still some tests failing, but I don't know why from the error messages. Can somebody give me a hint if there's still something wrong with my code? Otherwise, apart from some cosmetic changes the pull-request is ready to go. |
It is still marked as a draft. |
I think you removed the last instance of an |
612f191
to
50374ec
Compare
I keep getting the following error in the nightly test, is this caused by my changes? I haven't made any changes to
|
df3ef1d
to
b75042d
Compare
@bschroter @lkastner The pull request is ready to be reviewed. If you want, I can give you a brief rundown over Zoom to help you get started (maybe around the OSCAR meeting this Friday?). |
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.
A first round of comments.
src/TropicalGeometry/variety.jl
Outdated
end | ||
|
||
|
||
function polyhedral_complex(Sigma::Vector{<:Polyhedron}) |
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.
I will provide a PR which does this properly.
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.
That's great! If you do, can you please add an option to disable the checks whether the input polyhedra actually form a polyhedral complex? I should always be calling it with a set of maximal polyhedra of a polyhedral complex, no checks required.
Some of the tests that are currently failing are in the matroid package. I don't think they are related to my changes. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2832 +/- ##
==========================================
- Coverage 80.43% 80.33% -0.10%
==========================================
Files 506 522 +16
Lines 70074 70150 +76
==========================================
- Hits 56365 56357 -8
- Misses 13709 13793 +84
|
d2c03aa
to
787a18a
Compare
All required tests are now running through, let me know if you need any help with the reviews @bschroter @lkastner. I'd really like to get this merged sooner than later so my other collaborators can start building on top of it. |
Unfortunately this has a merge conflict now :-/ |
It doesn't look too hard to fix. I will get to it once the reviews are done. |
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.
I had a quick look at the tropical functionality (mainly from a users point of view and I only briefly looked at the code).
-
There are some larger parts of code just as a comment (see line 570 of variety.jl)
Maybe this requires first a little bit of clean up. -
Also it says `tropical_variety is currently under development' does that mean this should be an experimental package for the moment?
-
It is unclear to me whether the debug files should be part of the code base or not.
-
Should be functionality as Gröbner fans really be hidden in the tropical source code?
-
It might be confusing that tropical_variety returns an array while the other constructors as tropical_linear_space or tropical_hypersurface, tropical_curve return the variety directly.
-
[maybe more an enhancement] Should it be possible to intersect a tropical_linear_space with a tropical_hypersurface etc.?
Thanks for the comments @bschroter.
The code is kind of important, it is the beginning of the code for computing arbitrary tropicalizations. However, there are still a couple of hard-to-fix bugs that need to be ironed out.
The functionality that is there works or should work. But it is not feature complete yet.
No, it should be documented. I'll see whether I can add some quick documentation for it.
True, maybe
If there is a quick algorithm for doing so, sure! Otherwise, their intersection should fall back to the general intersection of tropical varieties. |
159606f
to
53fcbc8
Compare
@lkastner @benlorenz @thofma Some tests in PolyhedralGeometry are failing for me, do you know what may be causing them? It looks Nemo related to me. |
Without being at a computer, I am not aware of any change that might have caused this. @benlorenz did something change on the polyhedral side? |
The backtrace for the failing polyhedral tests contains:
You need to remove the custom See #2959 (comment) for details on the functions I added. |
TropicalGeometry: overhaul of tropical variety types TropicalGeometry: stable intersection start TropicalGeometry: more work on different types of tropical varieties TropicalGeometry: more work on tropical varieties TropicalGeometry: generic stable intersection TropicalGeometry: Overhaul of tropical variety types TropicalGeometry: added minimal_faces TropicalGeometry: typo TropicalGeometry: fixed docu TropicalGeometry: added stable intersection linear spaces TropicalGeometry: major overhaul TropicalGeometry: curve.jl, added DocTestFilter for edges TropicalGeometry: exports.jl, removed redundant exports TropicalGeometry: curve.jl, changed DocTestFilters TropicalGeometry: Project.toml, removing RecipesBase TropicalGeometry: overhaul semiring_maps and derivatives, added docs and tests TropicalGeometry: tests for groebner_bases and initial, bug fixes TropicalGeometry: tests for hypersurface, removed redundant exports TropicalGeometry: fixed typo, uniformized formatting TropicalGeometry: removed redundant exports TropicalGeometry: Fixed typo in docs and tests TropicalGeometry: tests for varieties and bugfixes TropicalGeometry: fixing docs and tests TropicalGeometry: fixing serialization code broken by changes TropicalGeometry: improving text TropicalGeometry: uniformizing code and formatting Fix serialization TropicalGeometry: major overhaul (squashed commits) TropicalGeometry: semiring.jl, fixing doctest TropicalGeometry: Fixed Project.toml Co-authored-by: Benjamin Lorenz <[email protected]> TropicalGeometry: Fixed Groebner bases docu Co-authored-by: Benjamin Lorenz <[email protected]> TropicalGeometry: replaced @Assert by @Req Co-authored-by: Benjamin Lorenz <[email protected]> TropicalGeometry: fixed typo in documentation Co-authored-by: Benjamin Lorenz <[email protected]> TropicalGeometry: Improved docu Co-authored-by: Benjamin Lorenz <[email protected]> TropicalGeometry: Replaced all @Assert by @Req TropicalGeometry: removed Lars and Marta from list of authors TropicalGeometry: exports.jl, fixed formatting TropicalGeometry: misc.md, deleted unnecessary file TropicalGeometry: added missing test for division by zero TropicalGeometry: undid accidental changes to Matroids/properties.jl TropicalGeometry: added missing message for @Req TropicalGeometry: Added names and titles of the cited literature TropicalGeometry: fixed printing of tropical zeroes TropicalGeometry: fixed deserialisation of tropical semiring zeroes TropicalGeometry: Undoing accidental changes Co-authored-by: Benjamin Lorenz <[email protected]> TropicalGeometry: undoing accidental changes Co-authored-by: Benjamin Lorenz <[email protected]> remove obsolete workaround TropicalGeometry: changed multiplicities from Dict to Vector TropicalGeometry: doc and test fixes TropicalGeometry: curve.jl, fixing constructor TropicalGeometry: linear_space.jl, fixed bug in constructor TropicalGeometry: variety.jl, fixed bug in dehomogenisation
53fcbc8
to
6053b11
Compare
Okay, all issues seem to be fixed. The pull request is ready to be merged as far as I am concerned. |
Do not merge yet, this is just a test to see whether everything is fine.