Read and write common Test & Measurement data types.
Project description
tm_data_types: Test & Measurement Data Types
tm_data_types
provides tools to convert, edit, and write waveform data from Test & Measurement devices.
It simplifies handling waveform formats like CSV, WFM, and BIN in Python.
tm_data_types
can be used to:
- Convert CSV, WFM, and BIN format into a waveform object,
- Add or edit waveform metadata,
- Write a valid waveform object to a file.
Supported File Formats
Interface | File formats |
---|---|
Reader | .csv, .wfm[^1] |
Writer | .csv, .wfm[^1] |
Installation
pip install tm_data_types
Basic Usage
Write File
from tm_data_types import AnalogWaveform, write_file
waveform = AnalogWaveform()
file_path = "waveform_1.wfm"
write_file(file_path, waveform)
Read File
from tm_data_types import read_file
file_path = "waveform_1.wfm"
waveform = read_file(file_path)
Documentation
See the full documentation at https://tm-data-types.readthedocs.io
Maintainers
Before reaching out to any maintainers directly, please first check if your issue or question is already covered by any open issues. If the issue or question you have is not already covered, please file a new issue or start a discussion and the maintainers will review and respond there.
- opensource@tektronix.com - For open-source policy and license questions.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
tm_data_types
was created by Tektronix. It is licensed under the terms of
the Apache License 2.0.
Security
The signatures of the files uploaded to PyPI and each
GitHub Release can be verified using
the GitHub CLI attestation verify
command.
The artifact attestations can also be directly downloaded from the
GitHub repo attestations page if desired.
gh attestation verify --owner tektronix <file>
[^1]: Currently, tm_data_types
only supports the Tektronix proprietary .wfm
format. Support for other formats is planned for future releases.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tm_data_types-0.1.1.tar.gz
.
File metadata
- Download URL: tm_data_types-0.1.1.tar.gz
- Upload date:
- Size: 49.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a7178f497e12c028a417f0514b11bbff8873570b92a8d326956cf4438fef6c9 |
|
MD5 | 26337e569aee08758dd4495161a09b53 |
|
BLAKE2b-256 | 69ba2724dc80dd65e99d3f22fdc4a5dcc15af2f5a40f8f0b1e065fc6fffc2d26 |
File details
Details for the file tm_data_types-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: tm_data_types-0.1.1-py3-none-any.whl
- Upload date:
- Size: 63.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dee0f09ec087a56fd6c6680846487abc31f0c6e00efbd49e25fdebd4e5159ed |
|
MD5 | 12919ec6cd47581c20f14a8449566e4a |
|
BLAKE2b-256 | 700a40fd564d8b84ef37673a41ecff8cb1d3a816aaba42e746966c34676330c8 |