stnmf.preprocessing.spiketriggered.window

stnmf.preprocessing.spiketriggered.window(sta, sd=3)

Obtain the spatial crop dimensions containing the receptive field for multiple cells

Parameters:
  • sta ((num_cells,x,y,tau) array_like) – STAs of multiple cells. If three dimensional, assume num_cells == 1

  • sd (float, optional) – Standard deviations of a two-dimensional Gaussian fit for the spatial windows around the center. Default is 3

Returns:

crop ((num_cells,) numpy.ndarray containing tuple of slice) – Object array containing the spatial crop dimensions for all cells. Each element is a tuple of slices with (slice(x_min,x_max,None), slice(y_min,y_max,None))