pypet/storageservice.py
def _trj_store_explorations(self, traj):
        """Stores a all explored parameter names for internal recall"""
        nexplored = len(traj._explored_parameters)
        if nexplored > 0:
            if hasattr(self._overview_group, 'explorations'):
                explorations_table = self._overview_group._f_get_child('explorations')
                if len(explorations_table) != nexplored:
                    self._hdf5file.remove_node(where=self._overview_group,
                                         name='explorations')
        if not hasattr(self._overview_group, 'explorations'):
            explored_list = list(traj._explored_parameters.keys())
            if explored_list:
                string_col = self._all_get_table_col('explorations',
                                                      explored_list,
                                                      'overview.explorations')
            else:
                string_col = pt.StringCol(1)
            description = {'explorations': string_col}
            explorations_table = self._hdf5file.create_table(where=self._overview_group,
                                                       name='explorations',
                                                       description=description)
            rows = [(x.encode('utf-8'),) for x in explored_list]
            if rows:
                explorations_table.append(rows)
                explorations_table.flush()
def _trj_store_explorations(self, traj):
        nexplored = len(traj._explored_parameters)
        if nexplored > 0:
            if hasattr(self._overview_group, 'explorations'):
                explorations_table = self._overview_group._f_get_child('explorations')
                if len(explorations_table) != nexplored:
                    self._hdf5file.remove_node(where=self._overview_group,
                                         name='explorations')
        if not hasattr(self._overview_group, 'explorations'):
            explored_list = list(traj._explored_parameters.keys())
            if explored_list:
                string_col = self._all_get_table_col('explorations',
                                                      explored_list,
                                                      'overview.explorations')
            else:
                string_col = pt.StringCol(1)
            description = {'explorations': string_col}
            explorations_table = self._hdf5file.create_table(where=self._overview_group,
                                                       name='explorations',
                                                       description=description)
            rows = [(x.encode('utf-8'),) for x in explored_list]
            if rows:
                explorations_table.append(rows)
                explorations_table.flush()
def _trj_store_explorations ( self , traj ) : nexplored = len ( traj . _explored_parameters ) if nexplored > 0 : if hasattr ( self . _overview_group , 'explorations' ) : explorations_table = self . _overview_group . _f_get_child ( 'explorations' ) if len ( explorations_table ) != nexplored : self . _hdf5file . remove_node ( where = self . _overview_group , name = 'explorations' ) if not hasattr ( self . _overview_group , 'explorations' ) : explored_list = list ( traj . _explored_parameters . keys ( ) ) if explored_list : string_col = self . _all_get_table_col ( 'explorations' , explored_list , 'overview.explorations' ) else : string_col = pt . StringCol ( 1 ) description = { 'explorations' : string_col } explorations_table = self . _hdf5file . create_table ( where = self . _overview_group , name = 'explorations' , description = description ) rows = [ ( x . encode ( 'utf-8' ) , ) for x in explored_list ] if rows : explorations_table . append ( rows ) explorations_table . flush ( )
Stores a all explored parameter names for internal recall
Stores a all explored parameter names for internal recall