Skip to main content

OHBA Software Library

Project description

OHBA Software Library (OSL) in Python

Python version of https://github.com/OHBA-analysis/osl-core.

Installation

The recommended installation depends on your operating system. If you are installing on a Mac or Linux machine, we recommend:

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

Here, the -e indicates we have installed in 'editable mode'. This means if we execute git pull or make any local modifications these changes will be reflected when we import the package.

If you use the OHBA workstation (hbaws) with TigerVNC, we recommend:

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

On remote servers without displays specific package versions are required (related to source reconstruction visualisation). The following can be used to install on machines without a display:

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

If you use the BMRC server, we recommend:

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

If you use the OHBA workstation (hbaws) via the terminal only, we recommend:

git clone https://github.com/OHBA-analysis/oslpy.git
cd oslpy
conda env create -f envs/hbaws-no-display.yml
conda activate osl-nd
pip install -e .

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.

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-0.1.1.tar.gz (4.3 MB view hashes)

Uploaded Source

Built Distribution

osl-0.1.1-py2.py3-none-any.whl (4.4 MB view hashes)

Uploaded Python 2 Python 3

Supported by

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