meeg_utils.testing.check_check#
- meeg_utils.testing.check_check(check, raw)[source]#
Check that a quality check honours the meeg-utils check contract.
The checks are:
Parameters survive
get_params/set_paramsandclone().plotbeforecomputeraisesNotFittedError.computereturns the check itself and does not modify the data.metrics_and the findings are JSON-serializable, every finding belongs to the check and has a valid level.Every kind in
plot_kindsdraws a figure.
- Parameters:
check (Check) – A check that has not been computed.
raw (Raw) – Preloaded data the check applies to.
- Raises:
AssertionError – If a check fails.