gbeflow/__init__.py
def write_hyperstack(hst,fpath,dataset='channel1'):
    '''
    Write an h5 file in the same format as was read in
    
    Parameters
    ----------
    hst : np.array
        Array with dimensions txy
    fpath : str
        Complete path to output file with '.h5' 
    dataset : str, optional
        Specifies name of the dataset in h5 file
    '''
    
    # Open new h5py file to add data to
    f = h5py.File(fpath,'w')

    # Save each timepoint to a group/dataset in h5 file
    for t in range(hst.shape[0]):
        f.create_dataset('t'+str(t)+'/'+dataset, data=hst[t])

    # close file
    f.close()

    Write an h5 file in the same format as was read in
    
    Parameters
    ----------
    hst : np.array
        Array with dimensions txy
    fpath : str
        Complete path to output file with '.h5' 
    dataset : str, optional
        Specifies name of the dataset in h5 file
    
Write an h5 file in the same format as was read in
Parameters

hst : np.array
Array with dimensions txy
fpath : str
Complete path to output file with '.h5'
dataset : str, optional
Specifies name of the dataset in h5 file
Write an h5 file in the same format as was read in Parameters hst : np . array Array with dimensions txy fpath : str Complete path to output file with ' . h5 ' dataset : str optional Specifies name of the dataset in h5 file
def write_hyperstack(hst,fpath,dataset='channel1'):
    f = h5py.File(fpath,'w')
    for t in range(hst.shape[0]):
        f.create_dataset('t'+str(t)+'/'+dataset, data=hst[t])
    f.close()
def write_hyperstack ( hst , fpath , dataset = 'channel1' ) : f = h5py . File ( fpath , 'w' ) for t in range ( hst . shape [ 0 ] ) : f . create_dataset ( 't' + str ( t ) + '/' + dataset , data = hst [ t ] ) f . close ( )
Write an h5 file in the same format as was read in
Parameters
Write an h5 file in the same format as was read in Parameters
'''
    Write an h5 file in the same format as was read in
    
    Parameters
    ----------
    hst : np.array
        Array with dimensions txy
    fpath : str
        Complete path to output file with '.h5' 
    dataset : str, optional
        Specifies name of the dataset in h5 file
    ''' # Open new h5py file to add data to # Save each timepoint to a group/dataset in h5 file # close file
hst
fpath
dataset