semvec/pypi-packages huggingface dataset:
nubrain 0.1.46
NuBrain connect
Requires Python: >=3.10

# nubrain-connect

Create Pipfile (only when running for the first time):
```bash
conda create -y -n py-nubrain -c conda-forge pip setuptools pipenv python=3.12
cd /home/john/github/nubrain-connect
pipenv --rm
rm Pipfile Pipfile.lock
pipenv install -e ./app
pipenv install -e "./app[dev]" --dev
```

Update Pipfile (after modifying dependencies in `pyproject.toml` file):
```bash
cd /home/john/github/nubrain-connect
conda activate py-nubrain
pipenv lock --clear
```

For local testing:
```bash
# Not the `liblsl` dependency (needed by pylsls).
conda create -y -n py-nubrain -c conda-forge pip setuptools pipenv liblsl python=3.12
conda activate py-nubrain
pip install -e /home/john/github/nubrain-connect/app
```

## Run experiment

```bash
sudo nano /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
# Change to 1

conda activate py-nubrain

nubrain --mode=data_collection_image --config=/path/to/example_config.yaml
```

# Demo mode

```bash
conda activate py-nubrain
nubrain --mode=eeg_to_image_live_demo --config=/path/to/cached.pickle
```