From: Michael Orlitzky Date: Mon, 7 Dec 2020 21:29:45 +0000 (-0500) Subject: eja: fix crashes (but not all failures) in subalgebra tests. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=68a5ab899fa73a2b571dc6c931857ce9ffe0f3b1;p=sage.d.git eja: fix crashes (but not all failures) in subalgebra tests. --- diff --git a/mjo/eja/eja_subalgebra.py b/mjo/eja/eja_subalgebra.py index 8a2a214..53038a5 100644 --- a/mjo/eja/eja_subalgebra.py +++ b/mjo/eja/eja_subalgebra.py @@ -15,7 +15,8 @@ class FiniteDimensionalEJASubalgebraElement(FiniteDimensionalEJAElement): the same as its matrix representation in the superalgebra:: sage: set_random_seed() - sage: A = random_eja().random_element().subalgebra_generated_by() + sage: x = random_eja(field=QQ).random_element() + sage: A = x.subalgebra_generated_by(orthonormalize=False) sage: y = A.random_element() sage: actual = y.to_matrix() sage: expected = y.superalgebra_element().to_matrix() @@ -28,7 +29,7 @@ class FiniteDimensionalEJASubalgebraElement(FiniteDimensionalEJAElement): sage: set_random_seed() sage: x = random_eja(field=AA).random_element() - sage: A = x.subalgebra_generated_by(orthonormalize_basis=True) + sage: A = x.subalgebra_generated_by(orthonormalize=True) sage: y = A.random_element() sage: y.operator()(A.one()) == y True