(cls, filename)
return record
Reads data from HDF file

        Returns:
            array of `_act_dtype`
Reads data from HDF file
Reads data from HDF file
def read_hdf(cls, filename) -> np.ndarray:
        """Reads data from HDF file

        Returns:
            array of `_act_dtype`
        """
        with h5py.File(filename, "r") as hfile:
            group = hfile[cls._hdf_path]
            record = np.empty(len(group), cls._act_dtype)
            for i, act in enumerate(group.values()):
                record[i]["sessions"] = np.array(
                    [cls._strip(item) for item in act], cls._session_dtype
                )
                for name, value in act.attrs.items():
                    record[i][name] = value
        return record
def read_hdf ( cls , filename ) -> np . ndarray : with h5py . File ( filename , "r" ) as hfile : group = hfile [ cls . _hdf_path ] record = np . empty ( len ( group ) , cls . _act_dtype ) for i , act in enumerate ( group . values ( ) ) : record [ i ] [ "sessions" ] = np . array ( [ cls . _strip ( item ) for item in act ] , cls . _session_dtype ) for name , value in act . attrs . items ( ) : record [ i ] [ name ] = value return record