ephysio
Python code for reading ephys files
openEphysIO
This module provides convenient access to continuous and event data saved by OpenEphys. For instance:
from ephysio import openEphysIO
import matplotlib.pyplot as plt
ldr = openEphysIO.Loader("/path/to/data")
# first probe
strm = ldr.spikestreams()[0]
# time x channel map of the data
dat = ldr.data(strm)
# sampling rate in Hz
fs_Hz = ldr.samplingrate(strm)
STIMMARKERCHANNEL = 2
# time stamps of events in channel 2 on the NIDAQ, translated to neuropixel time
evts = ldr.nidaqevents()[STIMMARKERCHANNEL]
CHANNEL = 100
STIMNO = 10
# Start time of event #10
s0 = evts[STIMNO, 0]
# prepare to receive 100 ms of data
ds = np.arange(int(.1*fs_Hz))
# 100 ms of data following the stimulus
response = dat[s0:s0+ds, CHANNEL]
# plot data with time in ms on x-axis
plt.plot(ds*1000/fs_Hz, response)
Much more documentation is included in the module itself. Most users will want to use the Loader class rather than the various other functions.
Credits
Developed and tested by DAW and Frank Lanfranchi.
Metadata
Release files for ephysio 1.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ephysio-1.0.13-py3-none-any.whl | Python 3 | none | any | Details for ephysio-1.0.13-py3-none-any.whl |
Release files / ephysio-1.0.13-py3-none-any.whl
| Download URL | ephysio-1.0.13-py3-none-any.whl |
|---|---|
| Size | 45.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ad86d02a7cc4abe9aaf7fa9feff8fbddcc1ade6467eefdda6f280abf54808c0
|
|
BLAKE2b-256 checksum How to use checksums |
c132471d877bc322eeca2018f0e1d68f08f104d11431fdb286a4f17fbc26d444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for ephysio 1.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.