From db09ca37e60822cf6a15bf18a388b3c1e9f93526 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 17 Dec 2023 07:02:53 +0100 Subject: [PATCH] convenient shortcut --- python/damask/_result.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/python/damask/_result.py b/python/damask/_result.py index 658f0b922..24061ff28 100644 --- a/python/damask/_result.py +++ b/python/damask/_result.py @@ -444,6 +444,19 @@ class Result: return self._manage_view('del',increments,times,phases,homogenizations,fields) + def view_reset(self): + """ + Reset to initial view. + + Returns + ------- + modified_view : damask.Result + View with all attributes visible. + + """ + return self.view(increments='*',phases='*',homogenizations='*',fieds='*',protected=True) + + def rename(self, name_src: str, name_dst: str):