Skip to content

OHBA-analysis/osl

Repository files navigation

OHBA Software Library (OSL)

Tools for MEG/EEG analysis.

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

Installation

See the official documentation for recommended installation instructions.

Alternatively, OSL can be installed from source code within a Miniconda (or Anaconda) environment using the following.

Linux

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

Mac

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

Oxford-specific computers

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

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

Or on the BMRC cluster:

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

Removing OSL

Simply removing the conda environment and delete the repository:

conda env remove -n osl
rm -rf osl

For Developers

Run tests:

cd osl
pytest tests

or to run a specific test:

cd osl/tests
pytest test_file_handling.py

Build documentation:

python setup.py build_sphinx

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