Home

Awesome

This fork can by used with python 3.6

To test

Opticspy is a python module for optics application. I want this for a long time. One reason is I know both optics and python, so why no develop some optics tools? The second reason is that there is not much opensource, easy-to-use optics program module(matlab has great fuctions but do not specify to optics application). I want this could be developed in to a core for a future web application for optics.

Followings are primary opticspy modules:

1. Real ray tracing and Lens Design:

2. Zernike Polynomial Methods

3. Interferometer and Testing Methods

4. Wave Propagation and Aberration Methods

5. Lens aberration, Jones matrix and gauss beam methods

There are some interesting derivative from opticspy:

1. A Zernike Polynomial GUI app based on opticspy and PyQt5

It is very easy to reuse or "wrap" opticspy module with a GUI(e.g. PyQt)

<p><img src="https://faster-than-light.net/files/panelpic.png" height="300" width="480" /></p>

2. Zernike Surface gif show

This is the Opticspy project page

This project is hosted on github in https://github.com/Sterncat/opticspy

Installing

Use pip install (recommend)

$ pip install opticspy

Or download here

$ python2.7 setup.py install

Some trouble shooting please read troubleshooting.md

How to use

>>> import opticspy

And just have fun with it!

What I want

<ul> <li>1. After import the module and you will get some functions that can do some calculation and education in optics</li> <li>2. Parameters should be very flexible, and the results should be shown in visualized, intuitionistic figures.</li> <li>3. After development of core, I want it be dynamic web application(with Javascript)</li> <li>4. I even hope one day it will become a part of online optics design application, who knows?</li> </ul>

TODO:

Authors and Contributors

I am Xing Fan. I graduated from Institute of Optics, University of Rochester. Now I am an engineer in Apple.

And this is my personal optics blog Faster than light

Support or Contact

If you have questions and advice, or want to participate in this project, contact me at marvin.fanxing@gmail.com. I would be very happy to find some one have the same interest!

MIT License


Copyright (c) 2014-2021 Xing Fan (https://github.com/Sterncat/opticspy) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.