Skip to main content

PAOS

PyPI version GitHub version Downloads License Documentation Status Contributor Covenant Ask DeepWiki

Introduction

PAOS, the Physical Optics Simulator, is a fast, modern, and reliable Python package for Physical Optics studies.

It implements Physical Optics Propagation in Fresnel approximation and paraxial ray tracing to analyze complex waveform propagation through both generic and off-axes optical systems.

It handles diffractive materials and can implement wavefront aberrations as Zernike polynomials, orthonormal polynomials, or grid sags.

Table of contents

How to install

Instructions on how to install PAOS.

Install from PyPI

PAOS is available on PyPI and can be installed via pip as

pip install paos

Install from source code

PAOS is compatible (tested) with Python 3.9+

To install from source, clone the repository and move inside the directory.

Then use pip as

pip install .

Test your installation

Try importing PAOS as

python -c "import paos; print(paos.__version__)"

Or running PAOS itself with the help flag as

paos -h

Or the Graphical User Interface with the help flag as

paos_gui -h

If there are no errors then the installation was successful!

Interactive Marimo Notebooks

PAOS provides interactive marimo notebooks to showcase (some of) its capabilities. These notebooks allow you to explore PAOS features in a live, browser-based environment.

Available marimo notebooks:

  • notebook/paos_demo.py
  • notebook/material.py
  • notebook/psd.py

Note: These notebooks are available only in PAOS version 1.2.6 and later.

How to run a marimo notebook:

After installing PAOS, marimo is already available.

To launch a notebook (for example):

marimo run notebook/paos_demo.py

This will open the interactive notebook in your browser.

Documentation

PAOS comes with an extensive documentation, which can be built using Sphinx. The documentation includes a tutorial, a user guide and a reference guide.

To build the documentation, install the needed packages first via poetry:

pip install poetry
poetry install --with docs

Build the html documentation

To build the html documentation, move into the docs directory and run

make html

The documentation will be produced into the build/html directory inside docs. Open index.html to read the documentation.

Build the pdf documentation

To build the pdf, move into the docs directory and run

make latexpdf

The documentation will be produced into the build/latex directory inside docs. Open paos.pdf to read the documentation.

The developers use pdflatex; if you have another compiler for LaTex, please refer to sphinx documentation.

How to contribute

You can contribute to PAOS by reporting bugs, suggesting new features, or contributing to the code itself. If you wish to contribute to the code, please follow the steps described in the documentation under Developer Guide.

How to cite

@INPROCEEDINGS{2024SPIE13092E..4KB,
       author = {{Bocchieri}, Andrea and {Mugnai}, Lorenzo V. and {Pascale}, Enzo},
        title = "{PAOS: a fast, modern, and reliable Python package for physical optics studies}",
    booktitle = {Space Telescopes and Instrumentation 2024: Optical, Infrared, and Millimeter Wave},
         year = 2024,
       editor = {{Coyle}, Laura E. and {Matsuura}, Shuji and {Perrin}, Marshall D.},
       series = {Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series},
       volume = {13092},
        month = aug,
          eid = {130924K},
        pages = {130924K},
          doi = {10.1117/12.3018333},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2024SPIE13092E..4KB},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Metadata

Release files for paos 1.2.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paos 1.2.14
File Size Uploaded
paos-1.2.14.tar.gz 181.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paos 1.2.14
File Interpreter ABI Platform
paos-1.2.14-py3-none-any.whl Python 3 none any Details

Total release size: 369.7 kB

Release files / paos-1.2.14.tar.gz

Download URL paos-1.2.14.tar.gz
Size 181.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dfa6c097c6067a5bb3fb15898ba0d2c664f72974ee0d7c7d5f3163fe5c46013e
BLAKE2b-256 checksum
How to use checksums
b9232919088ce187caf230328d2443176dfd67e60fd51e983a4082bbc7eed774
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / paos-1.2.14-py3-none-any.whl

Download URL paos-1.2.14-py3-none-any.whl
Size 188.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
749623a5929ac7da850bdd954d865d08fc7e2f95a6ba5575c8ed45e230a5daff
BLAKE2b-256 checksum
How to use checksums
3158546e1d15af4aca32a6a626615246a4b5fd3b452d748943f31ca93772380e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page