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.1.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.1-py2.py3-none-any.whl (17.7 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: osl_ephys-2.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a3fb12a7cdbe2d8a4d13036f59dec85ff2947f5c6d0c34909fbe4894178244b4
MD5 c2e3bec35c426b371f61c3b5aa5d73d9
BLAKE2b-256 2cedf386360e72a5e683cd9d00b0c7965f10bfa1446c3443d75072c1b445f3c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osl_ephys-2.3.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 172e5ca3cf167669ffd40b23372ab1338fb85947fa020b69ae5a50339de3ff12
MD5 ab7f3e765472052de98a89984843e1ef
BLAKE2b-256 31061ded6904263d3de3884553ee3c47fb38fb3ba3c61072ceba4361d1a3a005

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