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

Function _check_dep

mne/morph.py:892–901  ·  view source on GitHub ↗

Check dependencies.

(nibabel="2.1.0", dipy="0.10.1")

Source from the content-addressed store, hash-verified

890###############################################################################
891# Helper functions for SourceMorph methods
892def _check_dep(nibabel="2.1.0", dipy="0.10.1"):
893 """Check dependencies."""
894 for lib, ver in zip(["nibabel", "dipy"], [nibabel, dipy]):
895 passed = True if not ver else check_version(lib, ver)
896
897 if not passed:
898 raise ImportError(
899 f"{lib} {ver} or higher must be correctly "
900 "installed and accessible from Python"
901 )
902
903
904def _morphed_stc_as_volume(morph, stc, mri_resolution, mri_space, output):

Callers 3

compute_source_morphFunction · 0.85
_morphed_stc_as_volumeFunction · 0.85
_interpolate_dataFunction · 0.85

Calls 1

check_versionFunction · 0.85

Tested by

no test coverage detected