Fix tropical_variety_zerodimensional#4838
Conversation
|
We need someone to review this, perhaps someone from Berlin (maybe @micjoswig @lkastner @benlorenz have a suggestion who could do it?) |
|
Ping @danteluber . Could you review this? |
6460797 to
a692ba4
Compare
|
@oliverclarke8787 Could you please review the pull request? |
lkastner
left a comment
There was a problem hiding this comment.
Please add some documentation and tests. Currently this seems not to be covered and a proper review is much harder without an example.
|
@YueRen My only input for the moment is that maybe the first thing it should do is verify that the input ideal is indeed 0 dimensional. I acknowledge that this is an obvious requirement from the name, but it can be informative if something goes wrong at the step where this function is used as part of a larger computation. The error number_field returns if you use an ideal that isn't 0 dimensional doesn't make this obvious either. Also, does this function depend on the tropicalization map coming from a nontrivial valuation? In particular, the step where the padic_field is constructed? If so,maybe this should also be verified at the beginning. |
I've added a docstring now, hope this also means that it is covered in the doctests: |
@danteluber Hi Dante, thanks for looking into it and apologies for the late reply.
Either way, sorry for the confusion. As @lkastner pointed out, this whole thing could have been avoided if I had added a docstring in the first place, which is the sensible thing to do if I expect people to review it. |
|
You need to add the signature to one of the |
c1e7067 to
04376fa
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. |
Thanks for the tip. I think I'm fine with the docstring not showing up in the online-docs. I still consider it very experimental for now, and only exists because one of Bernd's students needs it. In the future, it should be called from some general user-facing tropicalization function. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4838 +/- ##
==========================================
+ Coverage 84.87% 84.94% +0.06%
==========================================
Files 683 683
Lines 91746 91741 -5
==========================================
+ Hits 77872 77925 +53
+ Misses 13874 13816 -58
🚀 New features to boost your workflow:
|
tropical_variety_zerodimensional
No description provided.