Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #13569: style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Aug 27, 2014
1 parent 0a3ca50 commit 4fbac85
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sage/algebras/quatalg/quaternion_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def basis(self):
self.__basis = tuple([self(1)] + list(self.gens()))
return self.__basis

def basis_for_quaternion_lattice(self, gens, ideal_list = None, reverse = False):
def basis_for_quaternion_lattice(self, gens, ideal_list=None, reverse=False):
"""
Return a basis for the `\\ZZ_F`-lattice in a quaternion algebra
spanned by the given gens.
Expand Down Expand Up @@ -1122,7 +1122,7 @@ def _magma_init_(self, magma):
self._a._magma_init_(magma),
self._b._magma_init_(magma))

def quaternion_order(self, basis,ideal_list = None, check=True):
def quaternion_order(self, basis, ideal_list=None, check=True):
"""
Return the order of this quaternion order with given basis.
Expand All @@ -1144,7 +1144,7 @@ def quaternion_order(self, basis,ideal_list = None, check=True):
sage: Q.quaternion_order([i,j,k], check=False)
Order of Quaternion Algebra (-11, -1) with base ring Rational Field with basis [i, j, k]
"""
return QuaternionOrder(self, basis, ideal_list = ideal_list, check=check)
return QuaternionOrder(self, basis, ideal_list=ideal_list, check=check)

def ideal(self, gens, left_order=None, right_order=None, check=True, **kwds):
r"""
Expand Down Expand Up @@ -1343,7 +1343,7 @@ class QuaternionOrder(Algebra):
sage: type(QuaternionAlgebra(-1,-7).maximal_order())
<class 'sage.algebras.quatalg.quaternion_algebra.QuaternionOrder'>
"""
def __init__(self, A, basis,ideal_list = None, check=True):
def __init__(self, A, basis, ideal_list=None, check=True):
"""
INPUT:
Expand Down Expand Up @@ -1417,7 +1417,7 @@ def __init__(self, A, basis,ideal_list = None, check=True):
Traceback (most recent call last):
...
ValueError: lattice must contain 1
sage: A.quaternion_order([1,i,j,k],ideal_list = [A.discriminant(), A.discriminant(), A.discriminant(), A.discriminant()])
sage: A.quaternion_order([1,i,j,k], ideal_list=[A.discriminant(), A.discriminant(), A.discriminant(), A.discriminant()])
Traceback (most recent call last):
...
ValueError: lattice must contain 1
Expand Down Expand Up @@ -1463,7 +1463,7 @@ def __init__(self, A, basis,ideal_list = None, check=True):
except AttributeError:
pass
if O:
M1 = A.basis_for_quaternion_lattice(basis, ideal_list = ideal_list)
M1 = A.basis_for_quaternion_lattice(basis, ideal_list=ideal_list)
if ideal_list:
M2 = A.basis_for_quaternion_lattice(basis+[x*y for x in basis for y in basis], ideal_list+[I*J for I in ideal_list for J in ideal_list])
else:
Expand All @@ -1476,7 +1476,7 @@ def __init__(self, A, basis,ideal_list = None, check=True):
basis = M1[0]
ideal_list = M1[1]
self.__basis = None
self.__pseudobasis = [basis,ideal_list]
self.__pseudobasis = [basis, ideal_list]
else:
if M1[0] != 1:
raise ValueError("lattice must contain 1")
Expand Down

0 comments on commit 4fbac85

Please sign in to comment.