Skip to content

Commit

Permalink
Use the FractionField function instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Jul 15, 2022
1 parent 07ffd7a commit 5b55aa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/algebras/quantum_clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from sage.combinat.free_module import CombinatorialFreeModule
from sage.categories.cartesian_product import cartesian_product
from sage.sets.family import Family
from sage.rings.fraction_field import FractionField
from sage.sets.finite_enumerated_set import FiniteEnumeratedSet
from itertools import product
from sage.misc.misc import powerset
Expand Down Expand Up @@ -160,7 +161,7 @@ def __classcall_private__(cls, n, k=1, q=None, F=None):
F = q.parent()
q = F(q)
if F not in Fields():
F = F.fraction_field()
F = FractionField(F)
q = F(q)

if bool(q**(2*k) == 1):
Expand Down

0 comments on commit 5b55aa0

Please sign in to comment.