Sterncat / opticspy

python optics module
MIT License
458 stars 127 forks source link

Import error for opticspy.ray_tracing #5

Closed atelierhide closed 8 years ago

atelierhide commented 8 years ago

from opticspy.ray_tracing import * gives the following error:

opticspy/ray_tracing/__init__.py in <module>()
----> 1 import lens, trace, glass, draw, analysis, field, codev

ImportError: No module named glass
Sterncat commented 8 years ago

Try change it to glass_function and put you test file in the same folder as opticspy. Or I highly recommend you for now just download the opticspy from github, and import it in the path same as this folder. I am really sorry I am still testing the relative import thing and if the release version is usable for real ray tracing part. But I am also really happy because you are the first user for real ray tracing part.

atelierhide commented 8 years ago

The release version with revised ray_tracing/__init__.py works fine for the triplet and double-gauss examples. Also, the codev.readseq looks quite useful. Thanks for sharing this project and looking forward to your progress.

Sterncat commented 8 years ago

Great! I am glad the project helps you!