Skip to main content

Read Tektronix WFM files with FastFrame support.

Project description

FFTekWFM

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 git+https://gitlab.in2p3.fr/himagnetos/tekwfm.git

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fftekwfm-0.3.0.1.tar.gz
  • Upload date:
  • Size: 4.8 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.0.1.tar.gz
Algorithm Hash digest
SHA256 44bb6f7c619857a9ab70e1835d6e8513c4dff20ab6b71708dc6a7677f36002b7
MD5 49f45e24ed39b427c51d2155428452ad
BLAKE2b-256 a6889420b3c196f7f296c7c2e182af37862081fdc34cd7694f6c6e44ef9f837d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fftekwfm-0.3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f51160b0d53cf8a5b2bddb5503b7f294d3393780c35b16104c1d3b33c1ce25
MD5 00f69a9084d90ed435c0ea81389648e0
BLAKE2b-256 e810e358539e7673ec7a31179f8b7ad8360693bb192fc796d7631ac3a4c24269

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