Skip to content

Commit 23e35c0

Browse files
authored
Merge branch 'develop' into fix/34822/better-position-camera
2 parents aa9937b + 104dde9 commit 23e35c0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
<!-- ^^^^^
2+
Please provide a concise, informative and self-explanatory title.
3+
Don't put issue numbers in there, do this in the PR body below.
4+
For example, instead of "Fixes #1234" use "Introduce new method to calculate 1+1"
5+
-->
16
### 📚 Description
27

3-
<!-- Describe your changes in detail -->
8+
<!-- Describe your changes here in detail -->
49
<!-- Why is this change required? What problem does it solve? -->
510
<!-- If it resolves an open issue, please link to the issue here. For example "Closes #1337" -->
611

@@ -10,6 +15,7 @@
1015
<!-- If your change requires a documentation PR, please link it appropriately -->
1116
<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
1217

18+
- [ ] I have made sure that the title is self-explanatory and the description concisely explains the PR.
1319
- [ ] I have linked an issue or discussion.
1420
- [ ] I have created tests covering the changes.
1521
- [ ] I have updated the documentation accordingly.

src/sage/schemes/elliptic_curves/ell_point.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,22 +254,19 @@ def __init__(self, curve, v, check=True):
254254
(1 : -2 : 1)
255255
"""
256256
point_homset = curve.point_homset()
257+
R = point_homset.value_ring()
257258
if is_SchemeMorphism(v) or isinstance(v, EllipticCurvePoint_field):
258259
v = list(v)
259260
elif v == 0:
260-
# some of the code assumes that E(0) has integral entries
261-
# regardless of the base ring...
262-
# R = self.base_ring()
263-
# v = (R.zero(),R.one(),R.zero())
264-
v = (0, 1, 0)
261+
v = (R.zero(), R.one(), R.zero())
265262
if check:
266263
# mostly from SchemeMorphism_point_projective_field
267264
d = point_homset.codomain().ambient_space().ngens()
268265
if not isinstance(v, (list, tuple)):
269266
raise TypeError("Argument v (= %s) must be a scheme point, list, or tuple." % str(v))
270267
if len(v) != d and len(v) != d-1:
271268
raise TypeError("v (=%s) must have %s components" % (v, d))
272-
v = Sequence(v, point_homset.value_ring())
269+
v = Sequence(v, R)
273270
if len(v) == d-1: # very common special case
274271
v.append(v.universe()(1))
275272

0 commit comments

Comments
 (0)