From 50809e02c2ac300190df362b6bba09d1ecd28671 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 21 Oct 2015 11:13:46 +0800 Subject: [PATCH] tools/short_format: display shape of ndarrays --- artiq/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/tools.py b/artiq/tools.py index 9e443fb6b..dfd9ef0bb 100644 --- a/artiq/tools.py +++ b/artiq/tools.py @@ -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