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

Function test_read_curv

mne/tests/test_surface.py:159–167  ·  view source on GitHub ↗

Test reading curvature data.

()

Source from the content-addressed store, hash-verified

157
158@testing.requires_testing_data
159def test_read_curv():
160 """Test reading curvature data."""
161 pytest.importorskip("nibabel")
162 fname_curv = data_path / "subjects" / "fsaverage" / "surf" / "lh.curv"
163 fname_surf = data_path / "subjects" / "fsaverage" / "surf" / "lh.inflated"
164 bin_curv = read_curvature(fname_curv)
165 rr = read_surface(fname_surf)[0]
166 assert len(bin_curv) == len(rr)
167 assert np.logical_or(bin_curv == 0, bin_curv == 1).all()
168
169
170@pytest.mark.parametrize("n_tri", (4, 3, 2))

Callers

nothing calls this directly

Calls 2

read_curvatureFunction · 0.90
read_surfaceFunction · 0.90

Tested by

no test coverage detected