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.4.1.tar.gz (5.1 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.4.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fftekwfm-0.4.1.tar.gz
  • Upload date:
  • Size: 5.1 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.4.1.tar.gz
Algorithm Hash digest
SHA256 29d23575479c2c0f6d5aac6dbb1dff32ba6090feb986149f98aacfcc1a0d8985
MD5 34271f77f36159a52b97b73c55ea066c
BLAKE2b-256 3928a42640d17c58da4e1919219da2252a5e21ef17b48a632a3cc2142fd1785d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fftekwfm-0.4.1-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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd012441239d1f0767929215c45d774ff44e8fd06c91bab0991a1a002f016949
MD5 1fabac8e20a6c068395ea31c8b14074d
BLAKE2b-256 53173c692d109d0366233da4db9fb2f64e77428e911ac247d29414f6e49421b0

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