faitdivers/pyao — pull request #44 by larsvl (2014-05-28 09:57:16+00:00)
Title: WFG

The WFG code uses Zernike polynomials to generate a wavefront. The main file has been changed to take the syntax of the new wfg functions.
Major changes:
- mainWFG.py is changed, wfg(...) now returns actual phase values, rather then a dummy array of ones. Moreover, the arguments have also changed, now a scalar or array must be supplied containing the zernike modes, as well as their weights.
- The main file main.py has been changed to supply the correct arguments to wfg(...). No changes have been made to the output of wfg, so this is not changes.

Also,
While testing the main file, I noticed that the WFR code tries to acces a array out of its bounds at line 105 in the main.py file. I guess this needs an update!