Skip to content

Commit

Permalink
TTENSOR: Fix missing newline and indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntjohnson1 committed Dec 13, 2024
1 parent 2ab3b73 commit c321d24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyttb/ttensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def __repr__(self): # pragma: no cover
Contains the core, and factor matrices as strings on different lines.
"""
display_string = f"Tensor of shape: {self.shape}\n" f"\tCore is a\n"
display_string += textwrap.indent(str(self.core), "\t")
display_string += textwrap.indent(str(self.core), "\t\t")
display_string += "\n"

for factor_idx, factor in enumerate(self.factor_matrices):
display_string += f"\tU[{factor_idx}] = \n"
Expand Down

0 comments on commit c321d24

Please sign in to comment.