Skip to content
Snippets Groups Projects
Commit 825ada0b authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix array shape stringification to better print corner cases

parent 29bd9565
Branches
Tags
No related merge requests found
...@@ -766,11 +766,9 @@ class ArrayBase(Record): ...@@ -766,11 +766,9 @@ class ArrayBase(Record):
info_entries.append("type: %s" % type_str) info_entries.append("type: %s" % type_str)
if self.shape is None: if self.shape is None:
pass info_entries.append("shape: unknown")
elif self.shape is lp.auto: elif self.shape is lp.auto:
info_entries.append("shape: auto") info_entries.append("shape: auto")
elif self.shape == ():
pass
else: else:
info_entries.append("shape: (%s)" info_entries.append("shape: (%s)"
% ", ".join(str(i) for i in self.shape)) % ", ".join(str(i) for i in self.shape))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment