def convolve_with_basis(self, S):
        (T,K) = S.shape
        (R,B) = self.basis.shape


        # Initialize array for filtered stimulus
        F = np.empty((T,K,B))

        # Compute convolutions fo each basis vector, one at a time
        for b in np.arange(B):
            F[:,:,b] = sig.fftconvolve(S,
                                       np.reshape(self.basis[:,b],(R,1)),
                                       'full')[:T,:]

        # Check for positivity
        if np.amin(self.basis) >= 0 and np.amin(S) >= 0:
            np.clip(F, 0, np.inf, out=F)
            assert np.amin(F) >= 0, "convolution should be >= 0"

        return F
Sets the enabled status for the tab. A disabled tab is shown as
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/utils/basis.py/Basis.convolve_with_basis--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tab_sheet.py/ITab.setEnabled