27 lines
651 B
Python
27 lines
651 B
Python
"""
|
|
Main Parsers module
|
|
"""
|
|
|
|
from .owon_parser import OwonParser
|
|
from .gwinstek_parser import GwinstekParser
|
|
from .ni_parser import NIParser
|
|
from .data import ScopeData
|
|
|
|
|
|
def parse_owon_data(file_path: str) -> ScopeData:
|
|
"""Parse OWON oscilloscope CSV file."""
|
|
parser = OwonParser()
|
|
return parser.parse(file_path)
|
|
|
|
|
|
def parse_gwinstek_data(file_path: str) -> ScopeData:
|
|
"""Parse Gwinstek oscilloscope CSV file."""
|
|
parser = GwinstekParser()
|
|
return parser.parse(file_path)
|
|
|
|
|
|
def parse_ni_data(file_path: str) -> ScopeData:
|
|
"""Parse National Instruments LVM file."""
|
|
parser = NIParser()
|
|
return parser.parse(file_path)
|