def feed_hdf5_spt(dtsFunc, objQ, vecSplt):
    """
    Feed FIFO queue for placement of spatial segments in hdf5 file.

    Parameters
    ----------
    dtsFunc : h5py dataset
        Dataset within h5py file.
    objQ : queue.Queue
        Queue from which voxel time courses are retrieved.
    vecSplt : np.array
        Indices of chunks of voxels in fMRI time course. Looping voxels by
        voxels is too slow. Instread, read & write a chunk of voxels at a
        time.

    Notes
    -----
    Place spatial segments (i.e. chunks of voxels) in hdf5 file. There is a
    corresponding function for placement of temporal segments.

    """
    varNumCnk = vecSplt.shape[0]
    for idxChnk in range(varNumCnk - 1):
        varIdx01 = vecSplt[idxChnk]
        varIdx02 = vecSplt[idxChnk + 1]
        dtsFunc[:, varIdx01:varIdx02] = objQ.get()
