SHESHA is the python part of the COMPASS platform designed to meet the need of high-performance for the simulation of AO systems
Project description
Table of Contents
Requirements
- Linux distribution with wget and git installed
- Nvidia GPU card with CUDA toolkit >= 11.8 (Older versions could be available on request)
Installation of Anaconda/Miniconda
COMPASS binaries, which contain the optimized GPU code, can be installed via Anaconda. Then, you have to install Anaconda 3 or Miniconda 3 (python 3 is required).
We recommend Miniconda instead of Anaconda as it is much lighter, but it's up to you.
export CONDA_ROOT=$HOME/miniconda3
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_ROOT
Don't forget to add your Miniconda or Anaconda directory to your PATH:
export PATH=$CONDA_ROOT/bin:$PATH
Installation of COMPASS via conda
Once Miniconda is installed, installing the COMPASS binaries is easy :
conda install -c compass compass -y
Note: conda main channel is compiled with CUDA 12. For previous version please have a look to the other channel and post an issue and we will try to provide it.
This command line will also install dependencies in your conda environment.
Installation of SHESHA package for COMPASS
First, you will need to set some environment variables:
export SHESHA_ROOT=$HOME/shesha
export PYTHONPATH=$SHESHA_ROOT:$PYTHONPATH
export PYTHONDONTWRITEBYTECODE=1
Finally, you can get the Shesha package of COMPASS. This python package is the user level of COMPASS. It also contains all the initialization functions.
git clone https://github.com/ANR-COMPASS/shesha.git $SHESHA_ROOT
Test your installation
Once the installation is complete, verify that everything is working fine :
cd $SHESHA_ROOT/tests
./checkCompass.sh
This test will basically launch fast simulation test cases and it will print if those cases have been correctly initialised.
Run the simulation
You are ready ! You can try it with one of our paramaters file:
cd $SHESHA_ROOT
ipython -i shesha/scripts/closed_loop.py data/par/par4bench/scao_sh_16x16_8pix.py
And if you want to launch the GUI:
cd $SHESHA_ROOT
ipython -i shesha/widgets/widget_ao.py
More documentation (maybe not fully up-to-date)
Project GitHub pages with a detailed user manual : https://anr-compass.github.io/compass/
doc auto-generated from code: http://shesha.readthedocs.io
wiki page of the COMPASS project: https://projets-lesia.obspm.fr/projects/compass/wiki/Wiki
Questions?
Please feel free to create an issue on Github for any questions and inquiries.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file shesha-5.5.0.post2.tar.gz
.
File metadata
- Download URL: shesha-5.5.0.post2.tar.gz
- Upload date:
- Size: 18.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Linux/5.15.133.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c30e935e4b53b03a60f56b3926cf5537047e62daec92e21ecec314b3b9e2b9 |
|
MD5 | 5cd19f9514540e7c8ff31f6cff583c19 |
|
BLAKE2b-256 | 8774535070a43350b425f3add9c4b1dd4f3080838c9e43d4d9c4f326e8227042 |
File details
Details for the file shesha-5.5.0.post2-py3-none-any.whl
.
File metadata
- Download URL: shesha-5.5.0.post2-py3-none-any.whl
- Upload date:
- Size: 322.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Linux/5.15.133.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6db5aa947eb453f851e8b342456d11a2e9f0acde66c80cf8334115c7126d9be0 |
|
MD5 | 1a68c680e81355be90930851b15c6deb |
|
BLAKE2b-256 | 96e5a318f0cde1fff34cf17750e102d78ae9fd3c2fe3d812086ba658202fcd9b |