Optical Design with Python.
To use the core package with standard management and optimization code write your source file and import the modules from the core subdirectory. Use the demo_*.py files as a starting point for your investigations. It is also possible to use FreeCAD as a 3D interface. Mainly the implementation uses wrapper codes to wrap the core functionality in a dialog and click & play manner. There is still no lens editor interface. At the moment you can only choose some demo directly in the sources.
You need Python 2.x with NumPy, SciPy, and matplotlib installed to run pyrate.
In Ubuntu, Mint and Debian you can use:
$ sudo apt-get install python python-numpy python-scipy python-matplotlib
If you want to run mypy on the project, you need also Python 3.x with mypy installed.
In Ubuntu, Mint and Debian you can use:
$ sudo apt-get install python3 pip3
$ sudo pip3 install mypy-lang
$ sudo python3 -m pip install typed-ast
- You need at least FreeCAD 0.16
- copy (or symlink) the pyrate directory into ~/.FreeCAD/Mod
- execute ./build_rc in PyrateWorkbench directory
- choose workbench in FreeCAD
Visit us on freenode (ports 6697, 7000, 7070 for SSL) channel #pyrate for some real time communication.