From c935ba12153161f4abc90985e760642e40a315c9 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 18 Sep 2020 16:23:23 +0200 Subject: [PATCH] user friendly self reporting --- python/damask/_table.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/damask/_table.py b/python/damask/_table.py index 3215cd8db..9789c8be6 100644 --- a/python/damask/_table.py +++ b/python/damask/_table.py @@ -29,6 +29,9 @@ class Table: self.shapes = { k:(v,) if isinstance(v,(np.int,int)) else v for k,v in shapes.items() } self._label_uniform() + def __repr__(self): + """Brief overview.""" + return util.srepr(self.comments)+'\n'+self.data.__repr__() def __copy__(self): """Copy Table."""