Skip to content

Commit 0ed83e9

Browse files
committed
projective_space.py: Change argument according to latest impl
1 parent a05fbaa commit 0ed83e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/schemes/projective/projective_space.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def points_of_bounded_height(self, **kwds):
11631163
elif R in NumberFields():
11641164
# True for the rational field as well, so check is_RationalField first
11651165
field_type = True
1166-
elif ((R is ZZ) or isinstance(R, Order)) and R.is_integrally_closed(): # Ensure maximal order
1166+
elif (R is ZZ) or (isinstance(R, Order) and R.is_integrally_closed()): # Ensure ring of integers / maximal order
11671167
is_ring_of_ints = True
11681168
else:
11691169
raise NotImplementedError("self must be a projective space over a number field or a ring of integers")
@@ -1182,7 +1182,7 @@ def points_of_bounded_height(self, **kwds):
11821182

11831183
# Field of fraction is the rational field
11841184
if fraction_field == QQ:
1185-
return ZZ_points_of_bounded_height(dim, bound)
1185+
return ZZ_points_of_bounded_height(self, dim, bound)
11861186

11871187
# Field of fraction is a number field
11881188
r1, r2 = fraction_field.signature()
@@ -1194,9 +1194,9 @@ def points_of_bounded_height(self, **kwds):
11941194
deg = fraction_field.degree()
11951195

11961196
if deg == 2 and r == 0:
1197-
return IQ_points_of_bounded_height(self, fraction_field, dim, bound, normalize=True)
1197+
return IQ_points_of_bounded_height(self, fraction_field, dim, bound)
11981198

1199-
return points_of_bounded_height(self, fraction_field, dim, bound, prec, normalize=True)
1199+
return points_of_bounded_height(self, fraction_field, dim, bound, prec)
12001200

12011201
# When R is a field
12021202
if field_type:
@@ -1214,7 +1214,7 @@ def points_of_bounded_height(self, **kwds):
12141214

12151215
return points_of_bounded_height(self, R, dim, bound, prec)
12161216
else:
1217-
return QQ_points_of_bounded_height(dim, bound)
1217+
return QQ_points_of_bounded_height(self, dim, bound)
12181218

12191219
def affine_patch(self, i, AA=None):
12201220
r"""

0 commit comments

Comments
 (0)