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

Method __init__

mne/annotations.py:952–956  ·  view source on GitHub ↗
(self, *args, hed_version, **kwargs)

Source from the content-addressed store, hash-verified

950 """Subclass of list that will validate before __setitem__."""
951
952 def __init__(self, *args, hed_version, **kwargs):
953 self._hed = _soft_import("hed", "validation of HED tags in annotations")
954 self._schema = self._hed.load_schema_version(hed_version)
955 super().__init__(*args, **kwargs)
956 self._objs = [self._validate_hed_string(item, self._schema) for item in self]
957
958 def __setitem__(self, key, value):
959 """Validate value first, before assigning."""

Callers

nothing calls this directly

Calls 3

_validate_hed_stringMethod · 0.95
_soft_importFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected