From: Michael Orlitzky Date: Fri, 26 Jul 2019 20:58:01 +0000 (-0400) Subject: eja: use sexier FiniteDimensionalAlgebrasWithBasis category. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=bfc95f030a55f022902ea6ad37abc21c8080e88d;p=sage.d.git eja: use sexier FiniteDimensionalAlgebrasWithBasis category. --- diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index 2b00302..304d7ff 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -5,7 +5,7 @@ are used in optimization, and have some additional nice methods beyond what can be supported in a general Jordan Algebra. """ -from sage.categories.magmatic_algebras import MagmaticAlgebras +from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis from sage.structure.element import is_Matrix from sage.structure.category_object import normalize_names @@ -282,7 +282,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra): raise ValueError("input is not a multiplication table") mult_table = tuple(mult_table) - cat = MagmaticAlgebras(field).FiniteDimensional().WithBasis() + cat = FiniteDimensionalAlgebrasWithBasis(field) cat.or_subcategory(category) if assume_associative: cat = cat.Associative()