MCPcopy Index your code
hub / github.com/mne-tools/mne-python / test_count_annotations

Function test_count_annotations

mne/tests/test_annotations.py:1943–1947  ·  view source on GitHub ↗

Test counting unique annotations.

()

Source from the content-addressed store, hash-verified

1941
1942
1943def test_count_annotations():
1944 """Test counting unique annotations."""
1945 annotations = Annotations([0, 1, 2], [1, 2, 1], ["T0", "T1", "T0"])
1946 assert annotations.count() == {"T0": 2, "T1": 1}
1947 assert count_annotations(annotations) == {"T0": 2, "T1": 1}
1948
1949
1950@pytest.mark.parametrize("split_size", ["1GB", "5MB"])

Callers

nothing calls this directly

Calls 3

countMethod · 0.95
AnnotationsClass · 0.90
count_annotationsFunction · 0.90

Tested by

no test coverage detected