Skip to main content

A tomographic astronomical adaptive optics simulation with realistic laser guide star propagation.

Project description

Simulation 'Optique Adaptative' with Python

(formerly PyAOS)

Build Status Build status codecov Documentation Status

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>.

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

soapy-0.15.0.tar.gz (138.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soapy-0.15.0-py3-none-any.whl (132.3 kB view details)

Uploaded Python 3

File details

Details for the file soapy-0.15.0.tar.gz.

File metadata

  • Download URL: soapy-0.15.0.tar.gz
  • Upload date:
  • Size: 138.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for soapy-0.15.0.tar.gz
Algorithm Hash digest
SHA256 b84885a1487f72e775e4c0414ce360481306b2215064827046bc8df5e45a33ff
MD5 e66f200b7db87ea8537212b164136bf7
BLAKE2b-256 9ccdc7250e24bcfc9f60b2c553a3f8f3f62b8e9fafd6deb30f2830e61a0df4a2

See more details on using hashes here.

File details

Details for the file soapy-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: soapy-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for soapy-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae63a6927e3d842eb3102edc67fdf5fa3974765b4972057696d0494037a4066
MD5 dfc4920debf50634e9260da80b4df669
BLAKE2b-256 334a9ad1fd147f904aca770fb86dc22f0067b03c93e0131ac56a927db9f13727

See more details on using hashes here.

Supported by

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