Skip to content

Commit bbab9b3

Browse files
[Andrew Polyakov] Changed ndarray string representation
1 parent 3a1a3c9 commit bbab9b3

File tree

1 file changed

+2
-1
lines changed
  • utbot-python/src/main/kotlin/org/utbot/python/framework/api/python

1 file changed

+2
-1
lines changed

utbot-python/src/main/kotlin/org/utbot/python/framework/api/python/PythonTree.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ object PythonTree {
167167

168168
override fun typeEquals(other: Any?): Boolean {
169169
return if (other is NDArrayNode)
170+
dimensions == other.dimensions &&
170171
children.zip(other.children).all {
171172
it.first.typeEquals(it.second)
172173
}
@@ -175,7 +176,7 @@ object PythonTree {
175176

176177

177178
override fun toString(): String {
178-
return "ndarray[${items.values}], shape: ($dimensions)"
179+
return "ndarray${items.values}, shape: $dimensions"
179180
}
180181
}
181182

0 commit comments

Comments
 (0)