Go to file
Snowsune 4e10407f9f Inital version 2025-09-30 12:26:09 -04:00
examples Inital version 2025-09-30 12:26:09 -04:00
scope_parser Inital version 2025-09-30 12:26:09 -04:00
.gitignore Inital version 2025-09-30 12:26:09 -04:00
Pipfile Inital version 2025-09-30 12:26:09 -04:00
Pipfile.lock Inital version 2025-09-30 12:26:09 -04:00
README.md Inital version 2025-09-30 12:26:09 -04:00
pyproject.toml Inital version 2025-09-30 12:26:09 -04:00
setup.py Inital version 2025-09-30 12:26:09 -04:00

README.md

Joe's Really Simple Scope Parser

Got to be enough times in class that we needed to load the data from either my own owon scope or the Gwinstek scopes at the lab. Both semi-standard CSV style exports. This package is just neat enough to combine those together.

Supports pulling the metadata, time encoding and etc from each of the loadable types.

Instalation

# Install directly from my server
pip install git+https://git.kitsunehosting.net/Kenwood/simple-scope-parser.git

Local Development

# Install in development mode
pip install -e .

# Or if you use pipenv
pipenv install -e .

Quick Start

from scope_parser import parse_scope_data

# Parse your oscilloscope data (auto-detects file format)
data = parse_scope_data("your_file.CSV")

# Access channel data
channel = data['CH1']

# Get voltage and time arrays
voltage = channel.voltage_values  # in mV
time = channel.time_values        # in seconds

# Access metadata
print(f"Frequency: {channel.frequency} Hz")
print(f"Peak-to-Peak: {channel.vpp} mV")
print(f"Average: {channel.average} mV")

License

MIT License