Hello,

My question follows the previous post link.

I am using the code kindly shared by @kingjr to test significance in temporal generalization plots (please see below)

My questions are:

- When adjacency is set to ‘None’ - in spatio_temporal_cluster_1samp_test - how are clusters defined?
- Would it be beneficial/possible to create an adjacency matrix of time x time proximity?

Many thanks in advance!

Ana P

```
def stats(X):
"""Statistical test applied across subjects"""
# check input
X = np.array(X)
X = X[:, :, None] if X.ndim == 2 else X
# stats function report p_value for each cluster
T_obs_, clusters, p_values, _ = spatio_temporal_cluster_1samp_test(
X, out_type='mask', n_permutations=2**12, n_jobs=-1, verbose=False)
# format p_values to get same dimensionality as X
p_values_ = np.ones_like(X[0]).T
for cluster, pval in zip(clusters, p_values):
p_values_[cluster.T] = pval
return np.squeeze(p_values_).T
```