Skip to main content

OSL: Electrophysiological Data Analysis Toolbox

Tools for analysing electrophysiological (M/EEG) data.

Documentation: https://osl-ephys.readthedocs.io/en/latest/.

Installation

We recommend installing osl-ephys in a conda environment.

Conda / mamba

Miniforge (conda) can be installed with:

wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
rm Miniforge3-$(uname)-$(uname -m).sh

Mamba (mamba) can be installed with:

conda install -n base -c conda-forge mamba

osl-ephys

osl-ephys can be installed from source code in a conda environment using the following.

git clone https://github.com/OHBA-analysis/osl-ephys.git
cd osl-ephys
mamba env create -f envs/osle.yml
conda activate osle
pip install -e .

Note, on a headless server you may need to set the following environment variable:

export PYVISTA_OFF_SCREEN=true

Oxford-specific computers

If you are installing on an OHBA workstation computer (hbaws) use:

git clone https://github.com/OHBA-analysis/osl-ephys.git
cd osl-ephys
mamba env create -f envs/hbaws.yml
conda activate osle
pip install -e .

Or on the BMRC cluster:

git clone https://github.com/OHBA-analysis/osl-ephys.git
cd osl-ephys
mamba env create -f envs/bmrc.yml
conda activate osle
pip install -e .

Remember to set the following environment variable:

export PYVISTA_OFF_SCREEN=true

Removing osl-ephys

Simply remove the conda environment and delete the repository:

conda env remove -n osle
rm -rf osl-ephys

For developers

Install all the requirements:

pip install -r requirements.txt

Run tests:

cd osl_ephys
pytest tests

or to run a specific test:

cd osl_ephys/tests
pytest test_file_handling.py

Build documentation locally:

sphinx-build -b html doc/source build

Compiled docs can be found in doc/build/html/index.html.

Metadata

Release files for osl-ephys 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osl-ephys 2.4.0
File Size Uploaded
osl_ephys-2.4.0.tar.gz 11.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for osl-ephys 2.4.0
File Interpreter ABI Platform
osl_ephys-2.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 28.8 MB

Release files / osl_ephys-2.4.0.tar.gz

Download URL osl_ephys-2.4.0.tar.gz
Size 11.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d9d2b29fe57b961f315e582364a599261b18503828c573fe209ee16fd6d91800
BLAKE2b-256 checksum
How to use checksums
f52df9aee093db94df2370ac2bcd96e9e83977febb05090e1303de8796bc6839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / osl_ephys-2.4.0-py2.py3-none-any.whl

Download URL osl_ephys-2.4.0-py2.py3-none-any.whl
Size 17.7 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
02d4b60cf3075789d19c12e032bcf1cb9c453b74684dfcfccdb290fb1d8288cd
BLAKE2b-256 checksum
How to use checksums
46051661a8862721e8d21248cf30994ed458946f68810ef030a52bae8e2eb94c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

2.4.0 This release

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page