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

Method __init__

mne/annotations.py:1049–1074  ·  view source on GitHub ↗
(
        self,
        onset,
        duration,
        description,
        hed_string,
        hed_version="8.3.0",
        orig_time=None,
        ch_names=None,
        *,
        extras=None,
    )

Source from the content-addressed store, hash-verified

1047 """
1048
1049 def __init__(
1050 self,
1051 onset,
1052 duration,
1053 description,
1054 hed_string,
1055 hed_version="8.3.0",
1056 orig_time=None,
1057 ch_names=None,
1058 *,
1059 extras=None,
1060 ):
1061 onset, duration, description, ch_names, extras = _check_o_d_s_c_e(
1062 onset, duration, description, ch_names, extras
1063 )
1064 hed_string = self._check_hed_strings(hed_string, len(onset))
1065 self._hed_version = hed_version
1066 self.hed_string = _HEDStrings(hed_string, hed_version=self._hed_version)
1067 super().__init__(
1068 onset=onset,
1069 duration=duration,
1070 description=description,
1071 orig_time=orig_time,
1072 ch_names=ch_names,
1073 extras=extras,
1074 )
1075
1076 @staticmethod
1077 def _check_hed_strings(hed_string, n_annot):

Callers

nothing calls this directly

Calls 4

_check_hed_stringsMethod · 0.95
_check_o_d_s_c_eFunction · 0.85
_HEDStringsClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected