From 9878ddc5503e037bcfaacf242bf5dc0fdf058635 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 11 Mar 2020 06:28:13 +0100 Subject: [PATCH] easier way to show data. needs information on geometry (structured/unstructured) and probably we should list not more than 5 incs --- python/damask/result.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/damask/result.py b/python/damask/result.py index 2c0972ffe..47803ae58 100644 --- a/python/damask/result.py +++ b/python/damask/result.py @@ -84,6 +84,11 @@ class Result: self.fname = fname + def __repr__(self): + """Show selected data.""" + return util.srepr(self.list_data()) + + def _manage_selection(self,action,what,datasets): """ Manages the visibility of the groups.