]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: fix crashes (but not all failures) in subalgebra tests.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Dec 2020 21:29:45 +0000 (16:29 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Dec 2020 21:29:45 +0000 (16:29 -0500)
mjo/eja/eja_subalgebra.py

index 8a2a21407cbff4d9f8a852fab5a9635cc13c1c1d..53038a50b5828aea75d57e72bf59aec0183a73ee 100644 (file)
@@ -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