Simulation 'Optique Adaptative' with Python
(formerly PyAOS)
Introduction
Soapy is a Monte-Carlo Adaptive Optics Simulation toolkit written in Python. soapy can be used as a conventional end-to-end simulation, where a large number of AO configurations can be created simply by editing a configuration file. Its real power lays in modular nature of objects, such as WFSs, DMs and reconstructors which can be taken and used as building blocks to construct new and complex AO ideas and configurations.
Please keep in mind that soapy is very much a work-in-progress and under heavy development. I've not yet settled on a completely stable API, but I will try and say when something big has changed. For these reasons I would strongly reccomend against using soapy for critical work and would suggest contacting me to discuss its suitability for any work to be published.
There is documentation at http://soapy.readthedocs.io/en/latest/, again this is also being developed at this time!
Quick-Start
Try out some of the code examples in the conf directory, either run the soapy script in bin, or load a python or IPython terminal:
import soapy
sim = soapy.Sim("configFilename")
sim.aoinit()
sim.makeIMat()
sim.aoloop()
All the data from the simulation exists in the sim object, the data available will depend upon parameters set in the configuration file. e.g. Slopes can be accessed by sim.allSlopes.
Required Libraries
Soapy doesn't have too many requirements in terms of external libraries, though it does rely on some. There are also some optional libraries which are recommended for plotting or performance.
Required
numpy => 1.7.0
scipy => 0.10
pyfits *or* astropy
pyfftw
numba
aotools
For GUI
PyQt5 (attempted to be compatibile with PyQt4 but not guaranteed)
pyqtgraph (http://www.pyqtgraph.org)
matplotlib
ipython
If your starting with python from scratch, there a couple of options. For Ubuntu linux (14.04+) users, all these packages can be installed via apt-get and pip:
sudo apt-get install python-numpy python-scipy python-pyfftw python-astropy python-qt4 python-matplotlib ipython ipython-qtconsole python-pyqtgraph
pip install aotools
For Red-hat based systems these packages should also be available from repositories, though I'm not sure of their names.
for mac os, all of these packages can be install via macports and pip, with
sudo port install python27 py27-numpy py27-scipy py27-astropy py27-pyfftw py27-pyqt4 py27-ipython py27-pyqtgraph py27-jupyter
pip install aotools
For any OS (including Windows), python distributions exist which include lots of python packages useful for science. A couple of good examples are Enthought Canopy (https://www.enthought.com), which is free for academics, and Anaconda (https://store.continuum.io/cshop/anaconda/) which is also free.
A lot of python packages are listed on https://pypi.python.org/pypi. Usually when python is installed, a script called easy_install is installed also, which can be used to get any package on pypi with easy_install <package>. Pip is a more recent python package manager which is currently reccommended for use, which can be found either through your system package manager or with easy_install pip. Then to install packages use pip install <package>.
Metadata
Release files for soapy 0.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| soapy-0.15.0.tar.gz | 138.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| soapy-0.15.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 270.7 kB
Release files / soapy-0.15.0.tar.gz
| Download URL | soapy-0.15.0.tar.gz |
|---|---|
| Size | 138.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b84885a1487f72e775e4c0414ce360481306b2215064827046bc8df5e45a33ff
|
|
BLAKE2b-256 checksum How to use checksums |
9ccdc7250e24bcfc9f60b2c553a3f8f3f62b8e9fafd6deb30f2830e61a0df4a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / soapy-0.15.0-py3-none-any.whl
| Download URL | soapy-0.15.0-py3-none-any.whl |
|---|---|
| Size | 132.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ae63a6927e3d842eb3102edc67fdf5fa3974765b4972057696d0494037a4066
|
|
BLAKE2b-256 checksum How to use checksums |
334a9ad1fd147f904aca770fb86dc22f0067b03c93e0131ac56a927db9f13727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for soapy 0.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.