pypet/storageservice.py
def _prm_write_shared_array(self, key, data, hdf5_group, full_name, flag, **kwargs):
        """Creates and array that can be used with an HDF5 array object"""

        if flag == HDF5StorageService.ARRAY:
            self._prm_write_into_array(key, data, hdf5_group, full_name, **kwargs)
        elif flag in (HDF5StorageService.CARRAY,
                    HDF5StorageService.EARRAY,
                    HDF5StorageService.VLARRAY):
            self._prm_write_into_other_array(key, data, hdf5_group, full_name,
                                             flag=flag, **kwargs)
        else:
            raise RuntimeError('Flag `%s` of hdf5 data `%s` of `%s` not understood' %
                               (flag, key, full_name))

        self._hdf5file.flush()
def _prm_write_shared_array(self, key, data, hdf5_group, full_name, flag, **kwargs):
        if flag == HDF5StorageService.ARRAY:
            self._prm_write_into_array(key, data, hdf5_group, full_name, **kwargs)
        elif flag in (HDF5StorageService.CARRAY,
                    HDF5StorageService.EARRAY,
                    HDF5StorageService.VLARRAY):
            self._prm_write_into_other_array(key, data, hdf5_group, full_name,
                                             flag=flag, **kwargs)
        else:
            raise RuntimeError('Flag `%s` of hdf5 data `%s` of `%s` not understood' %
                               (flag, key, full_name))

        self._hdf5file.flush()
def _prm_write_shared_array ( self , key , data , hdf5_group , full_name , flag , * * kwargs ) : if flag == HDF5StorageService . ARRAY : self . _prm_write_into_array ( key , data , hdf5_group , full_name , * * kwargs ) elif flag in ( HDF5StorageService . CARRAY , HDF5StorageService . EARRAY , HDF5StorageService . VLARRAY ) : self . _prm_write_into_other_array ( key , data , hdf5_group , full_name , flag = flag , * * kwargs ) else : raise RuntimeError ( 'Flag `%s` of hdf5 data `%s` of `%s` not understood' % ( flag , key , full_name ) ) self . _hdf5file . flush ( )
Creates and array that can be used with an HDF5 array object
Creates and array that can be used with an HDF5 array object