File reader for Compumedics Neuroscan data formats (.cdt, .dat).
Project description
CURRY Reader For Python
This is an open-source tool which allows to load CURRY data into Python. It supports: raw float (.cdt), ascii (.cdt), legacy raw float (.dat) and legacy ascii (.dat).
Installation And Dependencies
This package depends on numpy. If you are new to Python and don't already have numpy, please see https://numpy.org/install/
We recommend using the Miniconda (https://docs.conda.io/en/latest/miniconda.html) distribution of Python.
The complete list of dependencies is contained in the file requirements.txt
Having installed a Python distribution, install dependencies for this package in command prompt in Windows or terminal in Linux/MacOs by navigating to the this project's folder (where requirements.txt is located) and use:
pip install -r requirements.txt --user
Inputs
inputfilename: if left empty, reader will prompt user with file selection box, otherwise specify filename with path;
supported files are: raw float (cdt), ascii (cdt), legacy raw float (dat) and legacy ascii (dat)
plotdata: plotdata = 0, don't show plot
plotdata = 1, show plot (default)
plotdata = x, with x > 1, shows and automatically closes plot after x seconds
verbosity: 1 is low, 2 is medium (default) and 3 is high
Output As Dictionary With Keys
'data' functional data matrix (e.g. EEG, MEG) with dimensions (samples, channels)
'info' data information with keys: {'samples', 'channels', 'trials', 'samplingfreq'}
'labels' channel labels
'sensorpos' channel locations [x,y,z]
'events' events matrix where every row corresponds to: [event latency, event type, event start, event stop]
'annotations' corresponding annotations to each event
'epochinfo' epochs matrix where every row corresponds to: [number of averages, total epochs, type, accept, correct, response, response time]
'epochlabels' epoch labels
'impedancematrix' impedance matrix with max size (channels, 10), corresponding to last ten impedance measurements
'landmarks' functional, HPI or headshape landmarks locations
'landmarkslabels' labels for functional (e.g. LPA, Nasion,...), HPI (e.g. HPI 1, HPI 2,...) or headshape (e.g. H1, H2,...) landmarks
'hpimatrix' HPI-coil measurements matrix (Orion-MEG only) where every row is: [measurementsample, dipolefitflag, x, y, z, deviation]
Usage Examples
import curryreader as cr
# 1) Use file selection box, show plot (default), verbosity (default), output in dictionary "currydata"
currydata = cr.read()
# 2) Specify file path, avoid plot, minimum verbosity, output in dictionary "currydata"
currydata = cr.read("test_data\\Float.cdt", plotdata = 0, verbosity = 1)
# 3) Specify file path, show plot (default), verbosity (default), output in dictionary "currydata", print items
currydata = cr.read("test_data\\HPI.cdt")
for key, value in currydata.items(): print(key + ":\n", value)
Licensing
BSD (3-clause)
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
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 curryreader-0.1.0.tar.gz.
File metadata
- Download URL: curryreader-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2abaf79c7fe12b56578bc83594afc635c517481395ceedfd527f1dc885e38ded
|
|
| MD5 |
2eec6688eebf0c7138a85d9f7738d8f4
|
|
| BLAKE2b-256 |
2d4aa98ad6e16da97551fe764b13f443d568d3586f6c062ef1d3e6cc17808d76
|
Provenance
The following attestation bundles were made for curryreader-0.1.0.tar.gz:
Publisher:
release.yml on mne-tools/curry-python-reader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
curryreader-0.1.0.tar.gz -
Subject digest:
2abaf79c7fe12b56578bc83594afc635c517481395ceedfd527f1dc885e38ded - Sigstore transparency entry: 196839744
- Sigstore integration time:
-
Permalink:
mne-tools/curry-python-reader@d2d21f641f0ab339590a82afb80ace7aa7a5f06a -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/mne-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d2d21f641f0ab339590a82afb80ace7aa7a5f06a -
Trigger Event:
release
-
Statement type:
File details
Details for the file curryreader-0.1.0-py3-none-any.whl.
File metadata
- Download URL: curryreader-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f686882238c940d8ba52131a9db306d2849e3bf7a7cce76f6fdd10d2127b0264
|
|
| MD5 |
511db1d8139c7ca75f61e55e9c4969b9
|
|
| BLAKE2b-256 |
f79880f3c034b3516c0648a5bd08c3418aefc65682d0ae1e374c7abd622f2907
|
Provenance
The following attestation bundles were made for curryreader-0.1.0-py3-none-any.whl:
Publisher:
release.yml on mne-tools/curry-python-reader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
curryreader-0.1.0-py3-none-any.whl -
Subject digest:
f686882238c940d8ba52131a9db306d2849e3bf7a7cce76f6fdd10d2127b0264 - Sigstore transparency entry: 196839749
- Sigstore integration time:
-
Permalink:
mne-tools/curry-python-reader@d2d21f641f0ab339590a82afb80ace7aa7a5f06a -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/mne-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d2d21f641f0ab339590a82afb80ace7aa7a5f06a -
Trigger Event:
release
-
Statement type: