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 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")
Metadata
Release files for fftekwfm 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fftekwfm-0.4.1.tar.gz | 5.1 kB | Without provenance | Details for fftekwfm-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fftekwfm-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for fftekwfm-0.4.1-py3-none-any.whl |
Total release size: 11.4 kB
Release files / fftekwfm-0.4.1.tar.gz
| Download URL | fftekwfm-0.4.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29d23575479c2c0f6d5aac6dbb1dff32ba6090feb986149f98aacfcc1a0d8985
|
|
BLAKE2b-256 checksum How to use checksums |
3928a42640d17c58da4e1919219da2252a5e21ef17b48a632a3cc2142fd1785d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / fftekwfm-0.4.1-py3-none-any.whl
| Download URL | fftekwfm-0.4.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd012441239d1f0767929215c45d774ff44e8fd06c91bab0991a1a002f016949
|
|
BLAKE2b-256 checksum How to use checksums |
53173c692d109d0366233da4db9fb2f64e77428e911ac247d29414f6e49421b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for fftekwfm 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.