-
Notifications
You must be signed in to change notification settings - Fork 66
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
Pretty printing for elliptic curves and their points #1677
base: master
Are you sure you want to change the base?
Conversation
I think the "short/compact" form should not contain line breaks? I vaguely remember something like that |
You are right. Did I overlook a linebreak somewhere? |
src/EllCrv/EllCrv.jl
Outdated
print(io, "Elliptic curve with equation\n") | ||
io = pretty(io) | ||
print(io, "Elliptic curve with equation ") | ||
print(io, Indent()) |
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 think I got confused by this. What does this do without linebreak?
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.
Nothing (useful). I overlooked it. Thanks for pointing it out. Removed it.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1677 +/- ##
==========================================
- Coverage 75.97% 75.95% -0.03%
==========================================
Files 361 361
Lines 113876 113892 +16
==========================================
- Hits 86518 86502 -16
- Misses 27358 27390 +32
|
This 'breaks' the booktests, since the output changed (https://github.com/thofma/Hecke.jl/actions/runs/11754631063/job/32757483758?pr=1677#step:7:19595). So this change becomes breaking unfortunately. I will label it as such and we merge it once we want to make a breaking release. |
@simonbrandhorst Why don't you make the base field part of the detailed printing ? Since a priori one could define elliptic curves over any (nice?) field, wouldn't it sense to tell whether it is defined over |
We could do that. But I don't want to fix the doctests again xD. |
What would the right order be? First the equation or first the base field? |
I would put the base field first.
|
How about the following? If we agree, I can push the changes.
and
|
It looks good like that! |
0aedd33
to
7ff5c28
Compare
7ff5c28
to
24e566e
Compare
No description provided.