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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fftekwfm-0.4.tar.gz
  • Upload date:
  • Size: 5.2 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.tar.gz
Algorithm Hash digest
SHA256 d4d7df7dfbea30633e2fc8b1c60e9a63d9f197e1d8c2fb6a3554681c9ce17e1e
MD5 6b7ec9dca9225d268cf9b15f42aeb455
BLAKE2b-256 ae99f4805e2019199c29b9ac0d1a2e4aacfbbecc0c5552793a53024b32f909cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fftekwfm-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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-py3-none-any.whl
Algorithm Hash digest
SHA256 47566cec82dc596b06a776f354930a53388da1c586b6680c24e7fecbfa73ce3c
MD5 bb6b040172bd1be7370ed2fda77f3e13
BLAKE2b-256 05593e2c908499dbec1ef9ff4364ee57a24fedc5d8a2d817b45aedeea323cd18

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