MCPcopy Create free account
hub / github.com/audeering/opensmile / _parse_section_header

Method _parse_section_header

scripts/conf2dot.py:63–68  ·  view source on GitHub ↗
(self, line: str)

Source from the content-addressed store, hash-verified

61 return match.groups()[0]
62
63 def _parse_section_header(self, line: str) -> Section:
64 match = re.fullmatch(r"\[(\w+):(\w+)\]", line)
65 if not match:
66 raise ValueError("Invalid section header")
67 section_name, section_type = match.groups()
68 return Section(section_name, section_type)
69
70 def _parse_property(self, line: str) -> (str, object):
71 property_name, property_value = re.split(r"\s*=\s*", line, maxsplit=1)

Callers 1

parse_lineMethod · 0.95

Calls 1

SectionClass · 0.70

Tested by

no test coverage detected