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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tm_data_types-0.2.0.tar.gz.
File metadata
- Download URL: tm_data_types-0.2.0.tar.gz
- Upload date:
- Size: 49.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2025ccd6b29359e5ab5dac7e8b98b258b0204194b45b19d02a76a8f7b98e16f2
|
|
| MD5 |
7913e4f9f1be07da8f8b0a014aa64164
|
|
| BLAKE2b-256 |
7d6428713d5bda867caf55fd3c445a5406224840632d94487b0b05b7e214d418
|
File details
Details for the file tm_data_types-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tm_data_types-0.2.0-py3-none-any.whl
- Upload date:
- Size: 65.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca0ba2738b138ba3167d1de88731d04521c69a05c984a2b69294f61daec1989e
|
|
| MD5 |
3f50ad6229e64409e9569cc16fabcf75
|
|
| BLAKE2b-256 |
afc90d16d050a1422305ce905434c2673cb1fa7a8edbfd8a129eba1e41d70170
|