Skip to content

Commit

Permalink
fix TensorProductElement repr (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksagiyam authored Feb 24, 2023
1 parent 4f04bf1 commit 6f181ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ufl/finiteelement/tensorproductelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ def __init__(self, *elements, **kwargs):
self._cell = cell

def __repr__(self):
return "TensorProductElement(" + ", ".join(
repr(e) for e in self._sub_elements
) + f", {repr(self._cell)})"
return "TensorProductElement(" + ", ".join(repr(e) for e in self._sub_elements) + f", cell={repr(self._cell)})"

def mapping(self):
if all(e.mapping() == "identity" for e in self._sub_elements):
Expand Down

0 comments on commit 6f181ba

Please sign in to comment.