pypet/storageservice.py
def _trj_load_exploration(self, traj):
        """Recalls names of all explored parameters"""
        if hasattr(self._overview_group, 'explorations'):
            explorations_table = self._overview_group._f_get_child( 'explorations')
            for row in explorations_table.iterrows():
                param_name = row['explorations'].decode('utf-8')
                if param_name not in traj._explored_parameters:
                    traj._explored_parameters[param_name] = None
        else:
            # This is for backwards compatibility
            for what in ('parameters', 'derived_parameters'):
                if hasattr(self._trajectory_group, what):
                    parameters = self._trajectory_group._f_get_child(what)
                    for group in parameters._f_walk_groups():
                        if self._all_get_from_attrs(group, HDF5StorageService.LENGTH):
                            group_location = group._v_pathname
                            full_name = '.'.join(group_location.split('/')[2:])
                            traj._explored_parameters[full_name] = None
def _trj_load_exploration(self, traj):
        if hasattr(self._overview_group, 'explorations'):
            explorations_table = self._overview_group._f_get_child( 'explorations')
            for row in explorations_table.iterrows():
                param_name = row['explorations'].decode('utf-8')
                if param_name not in traj._explored_parameters:
                    traj._explored_parameters[param_name] = None
        else:
            # This is for backwards compatibility
            for what in ('parameters', 'derived_parameters'):
                if hasattr(self._trajectory_group, what):
                    parameters = self._trajectory_group._f_get_child(what)
                    for group in parameters._f_walk_groups():
                        if self._all_get_from_attrs(group, HDF5StorageService.LENGTH):
                            group_location = group._v_pathname
                            full_name = '.'.join(group_location.split('/')[2:])
                            traj._explored_parameters[full_name] = None
def _trj_load_exploration ( self , traj ) : if hasattr ( self . _overview_group , 'explorations' ) : explorations_table = self . _overview_group . _f_get_child ( 'explorations' ) for row in explorations_table . iterrows ( ) : param_name = row [ 'explorations' ] . decode ( 'utf-8' ) if param_name not in traj . _explored_parameters : traj . _explored_parameters [ param_name ] = None else : # This is for backwards compatibility for what in ( 'parameters' , 'derived_parameters' ) : if hasattr ( self . _trajectory_group , what ) : parameters = self . _trajectory_group . _f_get_child ( what ) for group in parameters . _f_walk_groups ( ) : if self . _all_get_from_attrs ( group , HDF5StorageService . LENGTH ) : group_location = group . _v_pathname full_name = '.' . join ( group_location . split ( '/' ) [ 2 : ] ) traj . _explored_parameters [ full_name ] = None
Recalls names of all explored parameters
Recalls names of all explored parameters