Skip to content

Commit

Permalink
Merge pull request #19 from andrewpaulreeves/master
Browse files Browse the repository at this point in the history
Updates for 0.2
  • Loading branch information
matthewtownson committed May 13, 2017
2 parents 4c93aab + 9f5f773 commit 39e02b2
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 10 deletions.
1 change: 1 addition & 0 deletions aotools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from . import astronomy, functions, image_processing, wfs, turbulence

from .astronomy import *
from .functions import *
from .fouriertransform import *
from .interpolation import *
Expand Down
2 changes: 1 addition & 1 deletion aotools/astronomy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .astronomy import *
from ._astronomy import *
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'''
A library of optical propagation methods.
A library of useful optical propagation methods.
Many extracted from the book by Schmidt, 2010: Numerical Methods
of optical proagation
'''

import numpy
from .. import fouriertransform
from . import fouriertransform

def angularSpectrum(inputComplexAmp, wvl, inputSpacing, outputSpacing, z):
"""
Expand Down
1 change: 0 additions & 1 deletion aotools/turbulence/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .phasescreen import *
from .infinitephasescreen import *
from .temporal_ps import *
from .opticalpropagation import *
from .slopecovariance import *
from .turb import *
2 changes: 1 addition & 1 deletion aotools/turbulence/infinitephasescreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def makeAMatrix(self):
cf = linalg.cho_factor(self.cov_mat_zz)
inv_cov_zz = linalg.cho_solve(cf, numpy.identity(self.cov_mat_zz.shape[0]))
except linalg.LinAlgError:
inv_cov_zz = linalg.inv(self.cov_mat_zz)
raise linalg.LinAlgError("Could not invert Covariance Matrix to for A and B Matrices. Try with a larger pixel scale")

self.A_mat = self.cov_mat_xz.dot(inv_cov_zz)

Expand Down
1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Contents:
fft
wfs
zernike
opticalpropagation

Indices and tables
==================
Expand Down
17 changes: 14 additions & 3 deletions doc/source/introduction.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
AOtools
=======
Introduction
============

AOtools is an attempt to gather together many common tools, equations and functions for Adaptive Optics.
The idea is to provide an alternative to the current model, where a new AO researcher must write their own library
of tools, many of which implement theory and ideas that have been in existance for over 20 years. AOtools will hopefully
provide a common place to put these tools, which through use and bug fixes, should become reliable and well documented.
provide a common place to put these tools, which through use and bug fixes, should become reliable and well documented.

Installation
------------
AOtools uses mainly standard library functions, and all attempts have been made to avoid adding unneccessary dependencies.
Currently, the library requires only

- numpy
- scipy
- astropy
- matplotlib

7 changes: 7 additions & 0 deletions doc/source/opticalpropagation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Optical Propagation
===================

.. automodule:: aotools.opticalpropagation
:members:
:undoc-members:
:show-inheritance:
4 changes: 2 additions & 2 deletions test/testOpticalprop.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import numpy

import logging
from aotools.turbulence import opticalpropagation, phasescreen
from aotools import circle
from aotools.turbulence import phasescreen
from aotools import circle, opticalpropagation

logging.basicConfig()

Expand Down

0 comments on commit 39e02b2

Please sign in to comment.