Skip to content

Fixing example#3

Draft
julianstirling wants to merge 4 commits intoDavid-Baddeley:masterfrom
julianstirling:fixing-example
Draft

Fixing example#3
julianstirling wants to merge 4 commits intoDavid-Baddeley:masterfrom
julianstirling:fixing-example

Conversation

@julianstirling
Copy link
Contributor

This branch is trying to fix the example so it runs on a clean install.

Needed to directly name the pyoptic2 when importing. Needed to update a number of the module names that have changed case.

Adding a show() function to the example so if run from command line the mlab figure doesn't close instantly.

Currently a couple of things are needed before this could be merged but require some input:

  • The SphericalSurface and PlaneSurface are commented out as they don't work. Volume.circ doesn't exist.
  • It would be good to stop doing import *. import * not only clutters the namespace it also makes it near impossible for a new user to find where which file the functions being used are to learn their inputs. from pyoptic2 import sources and sources.SphericalSurface(...) is far clearer as an example.

Previous version of setup.py was using setup from numpy making it
impossible to use setup to install numpy as a dependency.

The setup inculdes the packages listed as being needed for the Thorlabs
zeemax files as well as the pyqt5 needed for mayavi visulisations
@julianstirling julianstirling marked this pull request as draft May 24, 2023 15:01
@David-Baddeley
Copy link
Owner

David-Baddeley commented May 24, 2023 via email

@David-Baddeley
Copy link
Owner

Have just uploaded a very minimal example notebook. Not very polished, but should give some more clues. Will try and upload something with individual surfaces later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants