20 lines
463 B
Python
20 lines
463 B
Python
"""
|
|
Main Parsers module
|
|
"""
|
|
|
|
from .owon_parser import OwonParser
|
|
from .gwinstek_parser import GwinstekParser
|
|
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)
|