From 88e89070310ed9ab56301f07df7268d7da436763 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 2 Mar 2020 23:52:40 +0100 Subject: [PATCH] deprecated and not used by any test --- python/damask/result.py | 72 ++--------------------------------------- 1 file changed, 3 insertions(+), 69 deletions(-) diff --git a/python/damask/result.py b/python/damask/result.py index 826b0c5f2..9ff2bc45e 100644 --- a/python/damask/result.py +++ b/python/damask/result.py @@ -143,36 +143,6 @@ class Result(): self._manage_selection('set','increments',self.__time_to_inc(start,end)) - def add_by_time(self,start,end): - """ - Add to active increments based on start and end time. - - Parameters - ---------- - start : float - start time (included) - end : float - end time (included) - - """ - self._manage_selection('add','increments',self.__time_to_inc(start,end)) - - - def del_by_time(self,start,end): - """ - Delete from active increments based on start and end time. - - Parameters - ---------- - start : float - start time (included) - end : float - end time (included) - - """ - self._manage_selection('del','increments',self.__time_to_inc(start,end)) - - def set_by_increment(self,start,end): """ Set active time increments based on start and end increment. @@ -191,42 +161,6 @@ class Result(): self._manage_selection('set','increments',['inc{:05d}'.format(i) for i in range(start,end+1)]) - def add_by_increment(self,start,end): - """ - Add to active time increments based on start and end increment. - - Parameters - ---------- - start : int - start increment (included) - end : int - end increment (included) - - """ - if self.version_minor >= 4: - self._manage_selection('add','increments',[ 'inc{}'.format(i) for i in range(start,end+1)]) - else: - self._manage_selection('add','increments',['inc{:05d}'.format(i) for i in range(start,end+1)]) - - - def del_by_increment(self,start,end): - """ - Delet from active time increments based on start and end increment. - - Parameters - ---------- - start : int - start increment (included) - end : int - end increment (included) - - """ - if self.version_minor >= 4: - self._manage_selection('del','increments',[ 'inc{}'.format(i) for i in range(start,end+1)]) - else: - self._manage_selection('del','increments',['inc{:05d}'.format(i) for i in range(start,end+1)]) - - def iter_selection(self,what): """ Iterate over selection items by setting each one selected. @@ -371,7 +305,7 @@ class Result(): """Return the location of all active datasets with given label.""" path = [] with h5py.File(self.fname,'r') as f: - for i in self.iter_visible('increments'): + for i in self.iter_selection('increments'): k = '/'.join([i,'geometry',label]) try: f[k] @@ -379,8 +313,8 @@ class Result(): except KeyError as e: pass for o,p in zip(['constituents','materialpoints'],['con_physics','mat_physics']): - for oo in self.iter_visible(o): - for pp in self.iter_visible(p): + for oo in self.iter_selection(o): + for pp in self.iter_selection(p): k = '/'.join([i,o[:-1],oo,pp,label]) try: f[k]