Skip to content

Commit ff1acb1

Browse files
author
dPys
committed
[ENH] Prevent infinite loop with cov tolerance tuning
1 parent d11207a commit ff1acb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynets/fmri/estimation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ def get_conn_matrix(
203203
try:
204204
estimator.fit(time_series)
205205
except BaseException:
206+
ix += 1
206207
continue
207-
ix += 1
208208

209209
if not hasattr(estimator, 'covariance_') and not hasattr(estimator,
210210
'precision_'):

0 commit comments

Comments
 (0)