Added np.atleast_2d after 'squeezing out' any 'empty' voxels from the neighborhood. This way, if the squeezing removes all voxels but one, its time series is converted from a 1D array to a 2D array and the size of the neighbourhood is stored as 1, rather than the length of the time series.
Added np.atleast_2d after 'squeezing out' any 'empty' voxels from the neighborhood. This way, if the squeezing removes all voxels but one, its time series is converted from a 1D array to a 2D array and the size of the neighbourhood is stored as 1, rather than the length of the time series.