Skip to main content

OHBA Software Library for the analysis of electrophysiological data

Project description

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.

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

osl_ephys-2.3.0.tar.gz (11.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osl_ephys-2.3.0-py2.py3-none-any.whl (17.7 MB view details)

Uploaded Python 2Python 3

File details

Details for the file osl_ephys-2.3.0.tar.gz.

File metadata

  • Download URL: osl_ephys-2.3.0.tar.gz
  • Upload date:
  • Size: 11.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for osl_ephys-2.3.0.tar.gz
Algorithm Hash digest
SHA256 a40013255591a2df78804d6c4dfe1a9b5369355c368da339f4613888eb18ffd5
MD5 0b55f331d8b661d1970ac57bbccae007
BLAKE2b-256 85b403d9e49aa781af7d7d7ef1284f60f9e41edf450cdb4e5ecb5f0d0af68d0a

See more details on using hashes here.

File details

Details for the file osl_ephys-2.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: osl_ephys-2.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for osl_ephys-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea32048bce9559202da74d5f8eb52cb15dacf904639654bb2fbd549e2fc8f598
MD5 50f0932d61f893ba35c000ebcd091c86
BLAKE2b-256 909f1f5efa3ae8f6f1b982a2775bc39ad7ac904dd837fa6fbd33540791acc6c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page