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

Method count

mne/annotations.py:648–657  ·  view source on GitHub ↗

Count annotations. Returns ------- counts : dict A dictionary containing unique annotation descriptions as keys with their counts as values.

(self)

Source from the content-addressed store, hash-verified

646 return df
647
648 def count(self):
649 """Count annotations.
650
651 Returns
652 -------
653 counts : dict
654 A dictionary containing unique annotation descriptions as keys with their
655 counts as values.
656 """
657 return count_annotations(self)
658
659 def _any_ch_names(self):
660 return any(len(ch) for ch in self.ch_names)

Callers 15

test_count_annotationsFunction · 0.95
first_commentable_lineFunction · 0.80
_ensure_licenseFunction · 0.80
_ensure_copyrightFunction · 0.80
_ensure_blankFunction · 0.80
write_labels_to_annotFunction · 0.80
_reflow_param_docstringFunction · 0.80
test_setup_source_spaceFunction · 0.80
_merge_infoFunction · 0.80
_calibrate_compFunction · 0.80
split_name_extFunction · 0.80
_extract_curry_infoFunction · 0.80

Calls 1

count_annotationsFunction · 0.85

Tested by 15

test_count_annotationsFunction · 0.76
test_setup_source_spaceFunction · 0.64
_test_raw_readerFunction · 0.64
test_hed_annotationsFunction · 0.64
test_cov_rank_estimationFunction · 0.64
__init__Method · 0.64
test_epochs_io_preloadFunction · 0.64
test_split_namingFunction · 0.64
test_metadataFunction · 0.64