From 77bc937be6ccf427042ad77fc4741a00f1915251 Mon Sep 17 00:00:00 2001 From: Jordan DeKraker Date: Mon, 29 Jan 2024 13:45:20 -0500 Subject: [PATCH] removed valueError for nonzero eigenvalues --- brainspace/null_models/moran.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/brainspace/null_models/moran.py b/brainspace/null_models/moran.py index 54da5d9..3abf8e3 100644 --- a/brainspace/null_models/moran.py +++ b/brainspace/null_models/moran.py @@ -99,9 +99,6 @@ def compute_mem(w, n_ring=1, spectrum='nonzero', tol=1e-10): mask_zero = ev_abs < tol n_zero = np.count_nonzero(mask_zero) - if n_zero == 0: - raise ValueError('Weight matrix has no zero eigenvalue.') - # Multiple zero eigenvalues if spectrum == 'all': if n_zero > 1: