Skip to main content

Read Tektronix WFM files with FastFrame support.

Project description

FFTekWFM

PyPI

Tektronix Waveform file format reader.

Features :

  • Support WFM file format version 1, 2 and 3
  • Support FastFrame
  • Support memory mapping
  • Support loading frames with or without pre- and post-charge data

Header reader structure inspired by TekWFM2.

Notice

Note this package works for my use-case but is not properly tested. Consider using TekWFM2 for a more established solution.

Installation

pip install fftekwfm

Usage

Read a file with memory mapping and plot some time series from fast frames, unscaled :

import matplotlib.pyplot as plt
from fftekwfm import TekWFM

filename = "/path/to/tekfile.wfm"
tek = TekWFM(filename).load_frames().get_time_frame()
plt.figure()
plt.plot(tek.time_frame, tek.frames[:, [0, 8000, 15000]])
plt.xlabel("time (s)")
plt.ylabel("signal (a.u.)")

Load every frames in-memory and do some calculation :

import matplotlib.pyplot as plt
import numpy as np
from fftekwfm import TekWFM

filename = "/path/to/tekfile.wfm"
tek = TekWFM(filename).load_frames(mmap=False)
Sn = np.abs(np.fft.rfft(tek.frames, axis=0))
f = np.fft.rfftfreq(sig.shape[0], d=tek.tscale)  # tscale is the time between two samples
plt.figure()
plt.plot(f, S_mag)
plt.xlabel("frequency (Hz)")
plt.ylabel("magnitude")

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

fftekwfm-0.3.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

fftekwfm-0.3.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file fftekwfm-0.3.2.tar.gz.

File metadata

  • Download URL: fftekwfm-0.3.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fftekwfm-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e2c17939162fa0cfce6cb4fa9c02b6b72a07a2e02e6e778cea4bb7dbd91b1cc9
MD5 ddc2529697a7a868d1a651337ed0d832
BLAKE2b-256 d39954228f14e56ba2642d70e7977941788e2044eba8be51c0b1867171853bce

See more details on using hashes here.

File details

Details for the file fftekwfm-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: fftekwfm-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fftekwfm-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a269972fb118b17d2c1783544d9d1b6dc6a181a9527a499943359dc5e7fd10a9
MD5 b63ae8f3fdf0b02fabad94d62e4511f2
BLAKE2b-256 83491e932b4b8b29c503f39f546da7f5303a9f76df5af4a97efe44ae71f49af7

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