-
Notifications
You must be signed in to change notification settings - Fork 126
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
Tweak Betti table printing #4256
Tweak Betti table printing #4256
Conversation
The : is what is found in most books and papers (mostly due to M2), but if the causes trouble I can live with |, but we should discuss that. |
I don't care about My main interest is to get rid of the leading spaces in the first row of the table. We discussed this before, and as a temporary workaround the offending tests were changed to So far nobody has shown any signs of implementing a better fix that allows us to re-enable those tests, and so I am doing that now. As you can see in the diff, there were already test outputs that had started to diverge from what actually happens in OSCAR, and we didn't notice. |
I've updated this now to make a minimal change, i.e. it just inserts As a side effect this also makes it even more obvious how much those examples have diverged since they were added |
3abdba4
to
a2c3f67
Compare
@fingolfin Thx for doing this. I would like to discuss details in person. I will be at the university tomorrow. |
Here is a more extensive example for testing: S, x = graded_polynomial_ring(QQ, :x => 1:14, [-1,-1,1,1,1,1,1,1,1,1,1,1,2,2]); |
So that renders like this (if your terminal is wide enough):
|
@jankoboehm and @wdecker and myself discussed this and we agreed on this layout:
|
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.
Fine with me as soon as tests are green. @fingolfin Thanks again for dong this.
This makes it look a bit nicer (which is subjective) but also ensure that the Betti tables in jldoctests are formatted such that "doctest=:fix" works correctly (it didn't before because the first printed line had too many leading spaces, confusing Documenter's code for detecting were an input line ends).
a2c3f67
to
14f1a85
Compare
I've implemented the new styling and also changed on test to make it easier to maintain. Wolfram's example is now printed exactly as we discussed. |
I guess auto-merge has a problem with the book tests since the printing changed. |
I don't see any errors from betti tables in the log, both book test jobs (1.10 and nightly) were stuck in Edit: Looking at the order of the chapters, I think the booktests will indeed fail later due to the changed printing. |
Ah I forgot about the book tests. Do we have something like |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4256 +/- ##
==========================================
- Coverage 84.49% 84.48% -0.02%
==========================================
Files 641 641
Lines 85476 85539 +63
==========================================
+ Hits 72226 72269 +43
- Misses 13250 13270 +20
|
This makes it look a bit nicer (which is subjective) but also ensure that the Betti tables in jldoctests are formatted such that
doctest=:fix
works correctly (it didn't before because the first printed line had too many leading spaces, confusing Documenter's code for detecting were an input line ends).