This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.17.5 instead.
Reason given by maintainers: Severe regression regarding effective sampling frequency and clock segments
pyXDF
pyXDF is a Python importer for XDF files.
Sample usage
import matplotlib.pyplot as plt
import numpy as np
import pyxdf
data, header = pyxdf.load_xdf("test.xdf")
for stream in data:
y = stream["time_series"]
if isinstance(y, list):
# list of strings, draw one vertical line for each marker
for timestamp, marker in zip(stream["time_stamps"], y):
plt.axvline(x=timestamp)
print(f'Marker "{marker[0]}" @ {timestamp:.2f}s')
elif isinstance(y, np.ndarray):
# numeric data, draw as lines
plt.plot(stream["time_stamps"], y)
else:
raise RuntimeError("Unknown stream format")
plt.show()
CLI examples
pyxdf has a cli module with the following basic command line tools:
print_metadatawill enable a DEBUG logger to log read messages, then it will print basic metadata for each found stream.python -m pyxdf.cli.print_metadata -f=/path/to/my.xdf
playback_lslwill open an XDF file, then replay its data in an infinite loop, but using current timestamps. This is useful for prototyping online processing.python -m pyxdf.cli.playback_lsl /path/to/my.xdf --loop
Installation
The latest stable version can be installed with pip install pyxdf.
For the latest development version, use pip install git+https://github.com/xdf-modules/pyxdf.git.
For maintainers
A new release is automatically uploaded to PyPI. Therefore, as soon as a new release is created on GitHub (using a tag labeled e.g. v1.16.3), a PyPI package is created with the version number matching the release tag.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyxdf-1.17.1.tar.gz.
File metadata
- Download URL: pyxdf-1.17.1.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
161044dec30410f5aa19691888b950cbe26c55adbacb72aa8c37bc518950302f
|
|
| MD5 |
467979ea2263684c563fe65fda82240f
|
|
| BLAKE2b-256 |
fa72df0104ddd963fc04d0a4b4e132b574075fd86d3b2475011ecf93da7362ee
|
File details
Details for the file pyxdf-1.17.1-py3-none-any.whl.
File metadata
- Download URL: pyxdf-1.17.1-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e08114265f5a4a081ebeb3fbdf2cf98f99628c00c40108bebb798e5b49159f9f
|
|
| MD5 |
9d3ac15321d28b3b8721bd6a5da9ab99
|
|
| BLAKE2b-256 |
d74ffbfc67b5577b530222d5708c15ad91c4a548e0964d04b2e31da416f67353
|