-
Notifications
You must be signed in to change notification settings - Fork 120
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
To fix issue with Betti Tables #3800
Conversation
@Lax202 Please, your changes with respect to catching non-gradedness are not helpful. You ONLY need to erase as well as copy and paste as I described in the issue: Please remove test in the loop and, instead, start the function body with something like @Assert is_standard_graded(base_ring(F)) "resolution must be defined over a standard graded ring" That is all. |
@wdecker sorry for misunderstanding. I have added the assert statements. |
Please delete this line: module_degrees === nothing && error("One of the modules in the graded free resolution is not graded.") |
I would rather not backport this as this is not really a bugfix and it does change the output of the book examples (even if it is just whitespace). If I understand it correctly this is about doing extra checks to catch invalid input? |
Ah, okay, sorry. I just read "fix issue". |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3800 +/- ##
==========================================
+ Coverage 81.25% 81.30% +0.05%
==========================================
Files 580 579 -1
Lines 79289 79229 -60
==========================================
- Hits 64426 64419 -7
+ Misses 14863 14810 -53
|
Indeed? In the latex version of the book it looks okay. |
The CI job for the book tests is complaining about the removed lines, e.g.: julia> betti(free_resolution(defining_ideal(D)))
0 1
-----------
2 : 3 2
-----------
total: 3 2
-
julia> Oscar.rat_normal_curve_anticanonical_map(D) But it turns out in the book there is no extra new line. This was probably not flagged because the old Documenter based checking needed some extra filtering which removed the extra newline. So backporting this PR would change the output of 1.0.x but on the other hand adjust it to match the output in the book. |
So on second thought I think it does make sense to backport this since it will bring 1.0 and the book closer together even if it does change the output of 1.0 slightly. Please adjust the remaining jlcons, I think |
* removed extra line in betti show * changed range to include negative cohomologies -NOTSURE * Revert "changed range to include negative cohomologies -NOTSURE" This reverts commit e819131. * added asserts to betti * fixed with wdecker * removed extra line in betti table tests * extra line removed in documentation * deleted extra line in book tests * extra line in betti removed in book tests (cherry picked from commit 0810b2d)
This is an attempt to fix Issue #3798 @wdecker