MCPcopy Index your code
hub / github.com/mne-tools/mne-python / dec

Function dec

mne/utils/_testing.py:157–165  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

155
156 @wraps(function)
157 def dec(*args, **kwargs):
158 try:
159 return function(*args, **kwargs)
160 except np.linalg.LinAlgError as exp:
161 if "SVD did not converge" in str(exp):
162 msg = "Intel MKL SVD convergence error detected, skipping test"
163 warn(msg)
164 raise SkipTest(msg)
165 raise
166
167 return dec
168

Callers

nothing calls this directly

Calls 1

warnFunction · 0.85

Tested by

no test coverage detected