From 68a5ab899fa73a2b571dc6c931857ce9ffe0f3b1 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 7 Dec 2020 16:29:45 -0500 Subject: [PATCH] eja: fix crashes (but not all failures) in subalgebra tests. --- mjo/eja/eja_subalgebra.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.44.2