Skip to main content

Latest PyPI Release Latest Conda Release Python 3.5+ License

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/xdf-Python.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.2), a PyPI package is created with the version number matching the release tag.

Metadata

Release files for pyxdf 1.16.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxdf 1.16.3
File Size Uploaded
pyxdf-1.16.3.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyxdf 1.16.3
File Interpreter ABI Platform
pyxdf-1.16.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 33.9 kB

Release files / pyxdf-1.16.3.tar.gz

Download URL pyxdf-1.16.3.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d7744a8ba81992aa44d0ce740c256113324178903cbe18a754ee9f2735649123
BLAKE2b-256 checksum
How to use checksums
9b47ca71fa9866ed33195ee02afb9eae4e6d7eeb3ce0669a0bdf2a9264372dcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

Release files / pyxdf-1.16.3-py2.py3-none-any.whl

Download URL pyxdf-1.16.3-py2.py3-none-any.whl
Size 15.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8e2c1646ad8939f348998c0419fe491c28ec99645a63f21f064820ad251501bc
BLAKE2b-256 checksum
How to use checksums
1519706a6d7031e2978141e69abc172faddd852ad8bbdb9ad3c486a899f740f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

Release history Release notifications | RSS feed

1.17.5

2 release files

1.17.4

2 release files

1.17.3

2 release files

1.17.1

2 release files

1.16.8

2 release files

1.16.7

2 release files

1.16.6

2 release files

1.16.5

2 release files

1.16.4

2 release files

This release

1.16.3 This release

2 release files

1.16.2

2 release files

1.16.1

2 release files

1.16.0

2 release files

1.15.1

2 release files

1.14.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page