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 details)

Uploaded Source

Built Distributions

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

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 details)

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 details)

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 details)

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

File details

Details for the file cherab-solps-1.2.1.tar.gz.

File metadata

  • Download URL: cherab-solps-1.2.1.tar.gz
  • Upload date:
  • Size: 447.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for cherab-solps-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f6f925deb43e19a94dcff25f2b6fe34210368abaaab0abc116f738100cdcfaee
MD5 e347bc41f148592f7df8dec28b41e1e6
BLAKE2b-256 6c6ea76d726bfe2ee43189ba012b1457d5a430b5eac50337b4f1d8a1eb1afc9f

See more details on using hashes here.

File details

Details for the file cherab_solps-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cherab_solps-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee43167d03c83b96dad7dd4bb2d21ab0402dda740afd8bb4097c9fec664ce3d9
MD5 33b6f6dd8d2a1b67234d5839c9965d75
BLAKE2b-256 a7e74c2cb77a84e5718f93b0befdfb055c499847f84fa23e85ce6011b2242612

See more details on using hashes here.

File details

Details for the file cherab_solps-1.2.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cherab_solps-1.2.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 417eb3146241f2f34629db876ad4eadb6337144395f5a737e204ce5d78df8f26
MD5 c033a97392abc65231815d1b37803127
BLAKE2b-256 f049ebdcd63e58b8f5d4f182fb39d2609a9f8b20810063f6f3356e604a241449

See more details on using hashes here.

File details

Details for the file cherab_solps-1.2.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cherab_solps-1.2.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1e7fe3c0a362c1801a8d6588b2f637d32461533b8e0091af85a59ae209eb1786
MD5 cee874640ed670a93d0e190b19061acc
BLAKE2b-256 42375da4c121173977649c3e343adaa7950627cae00890e227861b7db1a6d05e

See more details on using hashes here.

File details

Details for the file cherab_solps-1.2.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cherab_solps-1.2.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 335882375e73a52d856352a411afe02fb81979a2e754cf8cb7fb1c4e8ece3529
MD5 60d63b6efb3feaadc303c60f0d4852db
BLAKE2b-256 e051b21091a19704380dd59d25a4e297bab4ebffd07a6376c43221dd94dbcd99

See more details on using hashes here.

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