-
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
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% 70.84% -5.14%
==========================================
Files 361 362 +1
Lines 113876 124451 +10575
==========================================
+ Hits 86518 88163 +1645
- Misses 27358 36288 +8930
|
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.