No project description provided
Project description
# BCI2kReader [![Build Status](https://travis-ci.com/markusadamek/BCI2kReader.svg?branch=master)](https://travis-ci.com/markusadamek/BCI2kReader) Python 3 and Python 2 compatible BCI2000 .dat file reader.
File reader for BCI2000 dat files for python 3. The reader should also work for python 2, but it has not been tested yet.
Reader for BCI2000 (http://www.schalklab.org/research/bci2000) .dat files. This project is a wrapper using the reader developed for the BcPy2000 project (http://bci2000.org/downloads/BCPy2000/BCPy2000.html)
to install the package use (Python3):
pip install BCI2kReader
This package is untested and still under development, use with caution!
### USAGE:
from BCI2kReader import BCI2kReader as b2k
test = b2k.BCI2kReader(‘yourbci2000testfile.dat’) #opens a stream to the dat file test.samplingrate # sampling rate ##### # you can use the reader for random access using read(), seek() my_signals=test.signals #reads the whole file and stores it in a numpy matrix channels (channels,datapoints) my_states=test.states #reads all states as a dictionary .. my_states[‘Running’] # access to the Running state ##### # By default calling test.signals or test.states caches all data in the object, this default behaviour can be changed by either calling the constructor with usecache=false or by calling .usecache(False). The cache can be cleared by calling .purge() #### # the reader object also supports direct slicing signalslice, stateslice = test[0:100] #returns the first 100 items, this works with cached and non cached mode and does not alter the current position of the file pointer
Project details
Release history Release notifications | RSS feed
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
Hashes for BCI2kReader-0.31.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb332c269168a6bc59d46c56291bf865c4111d1300c551763727de54d0a4c72b |
|
MD5 | 7e64d36ee5d80c2c6e8855d27a4e6589 |
|
BLAKE2b-256 | f61fc1f1e095070753a1a9bac5eb1225a4e13ce7f6315a94b9c5496ed3bfe0aa |