Skip to content

Commit 01d70ed

Browse files
committed
Simplify string joining
1 parent 920849d commit 01d70ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

galgebra/ga.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,13 @@ def basis_vectors(self):
676676

677677
def _build_basis_base_symbol(self, base_index):
678678
""" Build a symbol used for the `base_rep` from the given tuple """
679-
symbol_str = (''.join([str(self.basis[i]) + '*' for i in base_index]))[:-1]
679+
symbol_str = '*'.join([str(self.basis[i]) for i in base_index])
680680
return Symbol(symbol_str, commutative=False)
681681

682682
def _build_basis_blade_symbol(self, base_index):
683683
""" Build a symbol used for the `blade_rep` from the given tuple """
684684
if self.wedge_print:
685-
symbol_str = (''.join([str(self.basis[i]) + '^' for i in base_index]))[:-1]
685+
symbol_str = '^'.join([str(self.basis[i]) for i in base_index])
686686
else:
687687
sub_str = []
688688
root_str = []

0 commit comments

Comments
 (0)