Test reading curvature data.
()
| 157 | |
| 158 | @testing.requires_testing_data |
| 159 | def 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)) |
nothing calls this directly
no test coverage detected