Skip to content

Commit

Permalink
tools/short_format: display shape of ndarrays
Browse files Browse the repository at this point in the history
sbourdeauducq committed Oct 21, 2015
1 parent a58e416 commit 50809e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artiq/tools.py
Original file line number Diff line number Diff line change
@@ -57,6 +57,8 @@ def short_format(v):
r = t.__name__
if t is list or t is dict or t is set:
r += " ({})".format(len(v))
if t is np.ndarray:
r += " " + str(np.shape(v))
return r


0 comments on commit 50809e0

Please sign in to comment.