Skip to content

Commit

Permalink
docs improvements, including new available_optics page
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrin committed Jun 23, 2018
1 parent ad97f73 commit 56287df
Show file tree
Hide file tree
Showing 7 changed files with 893 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .rtd-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: packagename

channels:
- http://ssb.stsci.edu/astroconda

dependencies:
- setuptools
- numpy
- python>=3.0
- pip:
- sphinx-automodapi
- stsci_rtd_theme
- nbsphinx
861 changes: 861 additions & 0 deletions docs/available_optics.ipynb

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

# -- General configuration ----------------------------------------------------


extensions.append('nbsphinx')
extensions.append('sphinx.ext.mathjax')

# By default, highlight as Python 3.
highlight_language = 'python3'

Expand All @@ -66,6 +70,8 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns.append('_templates')
exclude_patterns.append('_build')
exclude_patterns.append('**.ipynb_checkpoints')

# This is added to the end of RST files - a good place to put substitutions to
# be used globally.
Expand Down
8 changes: 3 additions & 5 deletions docs/fresnel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ amplitude aberrations.
.. caution::
The Fresnel code has
been cross-checked against the `PROPER library by John Krist
<http://proper-library.sourceforge.net>` to verify accuracy and correctness of
<http://proper-library.sourceforge.net>`_ to verify accuracy and correctness of
output. A test suite is provided along with ``poppy`` in the tests subdirectory
and users are encouraged to run these tests themselves. However this is still
a relatively new addition to ``poppy``, and it is possible there may still be
some bugs.
and users are encouraged to run these tests themselves.



Expand Down Expand Up @@ -67,7 +65,7 @@ serves the same purpose in Fresnel propagation. Note that when adding
function and must specify a physical distance separating that optic from the
previous optic, again as an `astropy.Quantity
<http://docs.astropy.org/en/stable/units/>`_ of dimension length. This replaces
the ``addImage`` and ``addPupil`` methods used in Fraunhofer propagation.
the ``add_image`` and ``add_pupil`` methods used in Fraunhofer propagation.



Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Contents
relnotes.rst
overview.rst
examples.rst
available_optics.ipynb
wfe.rst
coronagraphs.rst
fresnel.rst
Expand Down
4 changes: 2 additions & 2 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Given a specified instrument configuration, an appropriate `~poppy.OpticalSystem
.. _fraunhofer:

Fraunhofer domain calculations
================================
--------------------------------

``poppy``'s default mode assumes that optical propagation can be modeled using
Fraunhofer diffraction (the "far field" approximation), such that the
Expand Down Expand Up @@ -72,7 +72,7 @@ onto a common pixel scale) more than makes up for this and the MFT is faster.


Working with OpticalElements
===================================
----------------------------

OpticalElements can be instantiated from FITS files, or created by one of a large number of analytic function definitions implemented as `~poppy.AnalyticOpticalElement` subclasses.
Typically these classes take some number of arguments to set their properties.
Expand Down
7 changes: 7 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
conda:
file: .rtd-environment.yml
python:
setup_py_install: true
version: 3
formats:
- pdf

0 comments on commit 56287df

Please sign in to comment.