summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-04 22:30:35 +0200
committerNao Pross <np@0hm.ch>2024-05-04 22:30:35 +0200
commit5aa2e4b84c23c7a535a7cb5093f478f9637d4792 (patch)
tree4557b0015314637ca2ee98e9d66c2072e7962af5
parentRemove circularity in FromSympyExpr by using polymatrix.variable (diff)
downloadpolymatrix-5aa2e4b84c23c7a535a7cb5093f478f9637d4792.tar.gz
polymatrix-5aa2e4b84c23c7a535a7cb5093f478f9637d4792.zip
Fix FromNumbersExpr.__str__
-rw-r--r--polymatrix/expression/impl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/polymatrix/expression/impl.py b/polymatrix/expression/impl.py
index 600ad81..91bab0c 100644
--- a/polymatrix/expression/impl.py
+++ b/polymatrix/expression/impl.py
@@ -162,6 +162,8 @@ class FromNumbersExprImpl(FromNumbersExprMixin):
if len(self.data[0]) == 1:
return str(self.data[0][0])
+ return str(self.data)
+
@dataclassabc.dataclassabc(frozen=True)
class FromNumpyExprImpl(FromNumpyExprMixin):