Skip to main content

Cherab spectroscopy framework: SOLPS submodule

Project description

Cherab SOLPS

Cherab add-on module for SOLPS simulations.

This module enables the creation of Cherab plasma objects from SOLPS simulations. Several SOLPS output formats are supported. Please see the examples in the demos directory for an illustration of how to use the module.

Installation

It is recommended to install Cherab in a virtual environment. This will enable installation of packages without modifying the system Python installation, which is particularly important on shared systems. To create a virtual environment, do the following:

python3 -m venv ~/venvs/cherab-venv

After the virtual environment is created, it can be activated by running:

source ~/venvs/cherab-venv/bin/activate

Once activated, cherab-solps and its dependencies can be installed with:

pip install cherab-solps

Building from source

Users

This module depends on the core Cherab framework. Cherab core, and all of its dependencies, are available on PyPI and can be installed using pip.

Note also that a bug in Cython prevents Cherab submodules from installing correctly. This bug is fixed, but not yet released in the stable version of Cython. As a result, you will need to install a pre-release version of Cython before installing this package. Recent versions of pip which support PEP 518 will handle this automatically when you run pip install cherab-solps and a binary wheel is not available for your platform or Python version.

For older versions of pip you may need to manually install the build-time dependencies. First, clone this repository, then do:

pip install -U cython==3.0a5
pip install cherab
pip install <path-to-cherab-solps>

This will pull in cherab-core, raysect numpy and other dependencies, then build and install the SOLPS module.

Developers

For developing the code, it is recommended to use local checkouts of cherab-core and raysect, as well as cherab-solps. Development should be done against the development branch of this repository, and any modifications submitted as pull requests to be merged back into development.

To install the package in develop mode, so that local changes are immediately visible without needing to reinstall, install with:

pip install -e <path-to-cherab-solps>

If you are modifying Cython files you will need to run ./dev/build.sh from this directory in order to rebuild the extension modules. They will then be used when Python is restarted.

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

cherab-solps-1.2.1.tar.gz (447.1 kB view hashes)

Uploaded Source

Built Distributions

cherab_solps-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cherab_solps-1.2.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

cherab_solps-1.2.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

cherab_solps-1.2.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

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