Skip to main content

Read and write common Test & Measurement data types.

Project description

Testing Code testing status Docs testing status Coverage status
Code Quality CodeQL status CodeFactor grade pre-commit status
Package PyPI: Package status PyPI: Latest release version PyPI: Supported Python versions PyPI: Downloads License: Apache 2.0 Package build status PyPI upload status
Documentation ReadtheDocs Status
Code Style Test style: pytest Code style: ruff Docstring style: google
Linting pre-commit enabled Docstring formatter: docformatterLinter: pylint

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.

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

tm_data_types-0.3.0.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tm_data_types-0.3.0-py3-none-any.whl (69.4 kB view details)

Uploaded Python 3

File details

Details for the file tm_data_types-0.3.0.tar.gz.

File metadata

  • Download URL: tm_data_types-0.3.0.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tm_data_types-0.3.0.tar.gz
Algorithm Hash digest
SHA256 44a57f5ffe78ac20d8af9b4230e370c215bee9d89e5f6b6b0850b2296470b2fd
MD5 b75f5163f0332267ac5d9c8314692995
BLAKE2b-256 7a29eb82dcbaa10b646c076cb51bee534c55bfa4d67e977677efbbb7e8bbf0e8

See more details on using hashes here.

File details

Details for the file tm_data_types-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tm_data_types-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 69.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tm_data_types-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98f20d56dfee80e52c48e520f7fe0d595c0a92ba10cf08145ed196e287e59c77
MD5 96cd7b777e351b02fb08aad342323bbb
BLAKE2b-256 972aef5f26bab09df294c7c794301b57ea173662b5bbc7f989b7bb86f5d89f92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page