All Projects → xdf-modules → pyxdf

xdf-modules / pyxdf

Licence: BSD-2-Clause license
Python package for working with XDF files

Programming Languages

python
139335 projects - #7 most used programming language
cython
566 projects

Projects that are alternatives of or similar to pyxdf

App-LabRecorder
An application for streaming one or more LSL streams to disk in XDF file format.
Stars: ✭ 53 (+165%)
Mutual labels:  xdf
IMCtermite
Enables extraction of measurement data from binary files with extension 'raw' used by proprietary software imcFAMOS/imcSTUDIO and facilitates its storage in open source file formats
Stars: ✭ 20 (+0%)
Mutual labels:  fileformat
dsfp
Dark Souls save file parser
Stars: ✭ 30 (+50%)
Mutual labels:  fileformat
exdir
Directory structure standard for experimental pipelines.
Stars: ✭ 68 (+240%)
Mutual labels:  fileformat
rpng
A simple and easy-to-use library to manage png chunks
Stars: ✭ 72 (+260%)
Mutual labels:  fileformat
pyEDAA.IPXACT
An IP-XACT DOM for IEEE 1685-2014 in Python.
Stars: ✭ 13 (-35%)
Mutual labels:  fileformat
VI-Explorer-VI
Low level LabView .vi File reader
Stars: ✭ 62 (+210%)
Mutual labels:  fileformat
JSON-for-VHDL
A JSON library implemented in VHDL.
Stars: ✭ 56 (+180%)
Mutual labels:  fileformat
Engine-Tune-Repository-TunerPro-EFIlive-TunerCat
Repository for Engine Tune information
Stars: ✭ 30 (+50%)
Mutual labels:  xdf

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/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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].