Skip to content

Commit

Permalink
Fixing representation test for infinte dimensional Lie algebras.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Nov 23, 2023
1 parent ea87210 commit 7063baf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/algebras/lie_algebras/representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def _test_representation(self, **options):
tester = self._tester(**options)
S = tester.some_elements()
elts = self._lie_algebra.basis()
if elts.cardinality() == float('inf'):
elts = list(elts.some_elements())
from sage.misc.misc import some_tuples
for x, y in some_tuples(elts, 2, tester._max_runs):
for v in S:
Expand Down

0 comments on commit 7063baf

Please sign in to comment.