Skip to content

Commit

Permalink
projective_space.py: Change argument according to latest impl
Browse files Browse the repository at this point in the history
  • Loading branch information
guojing0 committed Jul 7, 2023
1 parent a05fbaa commit 0ed83e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sage/schemes/projective/projective_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ def points_of_bounded_height(self, **kwds):
elif R in NumberFields():
# True for the rational field as well, so check is_RationalField first
field_type = True
elif ((R is ZZ) or isinstance(R, Order)) and R.is_integrally_closed(): # Ensure maximal order
elif (R is ZZ) or (isinstance(R, Order) and R.is_integrally_closed()): # Ensure ring of integers / maximal order
is_ring_of_ints = True
else:
raise NotImplementedError("self must be a projective space over a number field or a ring of integers")
Expand All @@ -1182,7 +1182,7 @@ def points_of_bounded_height(self, **kwds):

# Field of fraction is the rational field
if fraction_field == QQ:
return ZZ_points_of_bounded_height(dim, bound)
return ZZ_points_of_bounded_height(self, dim, bound)

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

if deg == 2 and r == 0:
return IQ_points_of_bounded_height(self, fraction_field, dim, bound, normalize=True)
return IQ_points_of_bounded_height(self, fraction_field, dim, bound)

return points_of_bounded_height(self, fraction_field, dim, bound, prec, normalize=True)
return points_of_bounded_height(self, fraction_field, dim, bound, prec)

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

return points_of_bounded_height(self, R, dim, bound, prec)
else:
return QQ_points_of_bounded_height(dim, bound)
return QQ_points_of_bounded_height(self, dim, bound)

def affine_patch(self, i, AA=None):
r"""
Expand Down

0 comments on commit 0ed83e9

Please sign in to comment.