Python interface for NeuLog sensors
Project description
NeuLogPy
A Python interface for NeuLog sensors, providing easy-to-use functions for data collection and experiment management.
Features
- Simple interface for NeuLog sensors
- Real-time data collection
- Configurable sampling rates
- Support for multiple sensors
- Automatic sensor discovery and configuration
- Built-in error handling and logging
Installation
pip install NeuLogPy
Quick Start
from NeuLogPy import NeuLog
# Initialize NeuLog with config file
neulog = NeuLog(config_file="config/sensors.yaml")
# Setup experiment parameters
sensor_name = "Respiration"
rate = 8 # 8 Hz sampling rate
samples = 1000 # Number of samples to collect
respiration_sensor = [(sensor_name, 1)] # Sensor name and ID
# Start experiment
neulog.start_experiment(sensors=respiration_sensor, rate=rate, samples=samples)
# Get samples
samples = neulog.experiment.get_samples()
if samples:
print(f"Respiration Samples: {samples}")
# Stop experiment
neulog.experiment.stop()
Configuration
Create a sensors.yaml file in your config directory:
sensors:
Respiration:
code: "RESP"
unit: "AU"
description: "Respiration sensor"
# Add more sensors as needed
Dependencies
- Python >= 3.7
- pydantic >= 2.0.0
- requests >= 2.25.0
- pyyaml >= 5.4.0
Version History
- 1.2.0: Fixed package imports, improved documentation
- 1.1.1: Initial release
License
MIT License
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
Support
For support, please open an issue on the GitHub repository or contact info@sustronics.com.
Project details
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 NeuLogPy-1.2.0.tar.gz.
File metadata
- Download URL: NeuLogPy-1.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecccee3e1b0d9cce36f7f620fa3efc44d93c54cd1eaeef2e02836f5daadbbf79
|
|
| MD5 |
9a2aa5490f8cb11c6efa8391ae16e5ac
|
|
| BLAKE2b-256 |
b05e1575f8df5d66111169b21730e6f4e4287b4932a7f30f0d7946aff088649c
|
File details
Details for the file NeuLogPy-1.2.0-py3-none-any.whl.
File metadata
- Download URL: NeuLogPy-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd8c3252aad97b798db560bfcf6faf608b6e6ce8a902d81a316767e0c0b64a65
|
|
| MD5 |
9d4adf9914c59ab8e74b7ec1e67e42ec
|
|
| BLAKE2b-256 |
4c12f77bf33e6f46da7911da5f27854bf63d53af2c09cf715eb62156a4153f50
|