Fast Python bindings for reading Intan RHS files
Project description
intan-importer
Fast Python bindings for reading Intan RHS files, powered by Rust for high performance.
Installation
pip install intan-importer
Quick Start
import intan_importer
# Load a single RHS file
recording = intan_importer.load("path/to/file.rhs")
# Or load all RHS files from a directory
recording = intan_importer.load("path/to/directory/")
# Access metadata
print(f"Sample rate: {recording.header.sample_rate} Hz")
print(f"Duration: {recording.duration()} seconds")
# Access data as NumPy arrays
if recording.data:
timestamps = recording.data.timestamps # Sample numbers
amplifier_data = recording.data.amplifier_data # Shape: (channels, samples)
# Convert timestamps to seconds
time_seconds = timestamps / recording.header.sample_rate
Data Units
- Timestamps: Sample numbers (divide by sample_rate for seconds)
- Amplifier data: Microvolts (µV)
- DC amplifier data: Volts (V)
- ADC/DAC data: Volts (V)
- Digital data: 0 or 1
License
Licensed under MIT.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 intan_importer-0.1.0-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: intan_importer-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 325.1 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
468342c6e3cd5288968ec32d0008d418e6e9fd42d8c10619cf2123e429df150f
|
|
| MD5 |
8639bd91cafc345a7eab9ef7557ea73e
|
|
| BLAKE2b-256 |
20446fadfc044bf2df9a96c1bc3ebe70354fc10d1bdb1e3cc7f73f43d2dda27a
|