pyXDF
pyXDF is a Python importer for XDF files.
Sample usage
import pyxdf
import matplotlib.pyplot as plt
import numpy as np
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()
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.
Metadata
Release files for pyxdf 1.16.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyxdf-1.16.4.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyxdf-1.16.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 34.6 kB
Release files / pyxdf-1.16.4.tar.gz
| Download URL | pyxdf-1.16.4.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44fb1e16789ec415423b01c05332fa669e425a4d6d48160195dbb019f45f501d
|
|
BLAKE2b-256 checksum How to use checksums |
bf1728c3184dec480e21a78f28287ffdcbc865aacbffff490e51445435dfe5a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / pyxdf-1.16.4-py2.py3-none-any.whl
| Download URL | pyxdf-1.16.4-py2.py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
43787364e3ae63e1068a087264b883281b51567ea46cfa9823f83b7bf0e1ed07
|
|
BLAKE2b-256 checksum How to use checksums |
88828d4aa5db1c0030140296d5de10f40f047d212f3c52d515155f6890b44aa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|