MCPcopy
hub / github.com/mne-tools/mne-python / _assert_n_free

Function _assert_n_free

mne/preprocessing/tests/test_maxwell.py:174–179  ·  view source on GitHub ↗

Check the DOF.

(raw_sss, lower, upper=None)

Source from the content-addressed store, hash-verified

172
173
174def _assert_n_free(raw_sss, lower, upper=None):
175 """Check the DOF."""
176 __tracebackhide__ = True
177 upper = lower if upper is None else upper
178 n_free = raw_sss.info["proc_history"][0]["max_info"]["sss_info"]["nfree"]
179 assert lower <= n_free <= upper, f"nfree fail: {lower} <= {n_free} <= {upper}"
180
181
182def _assert_mag_coil_type(info, coil_type):

Callers 2

test_other_systemsFunction · 0.85
test_cross_talkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected