Sterncat / opticspy

python optics module
MIT License
448 stars 126 forks source link

Ported to Pyhton 3.X #8

Closed Diti24 closed 8 years ago

Diti24 commented 8 years ago

There is still some work to do but most is running

I was able to have the module loading succefully: from opticspy.ray_tracing import * worked many of the examples worked as well. there is just an issue in: New_Lens.add_surface(number=11,radius=177.41176,thickness=7,glass='N-SK16_schott') which gives me an error: File "/tmp/github/opticspy/ray_tracing/glass_function/refractiveIndex.py", line 68, in getMaterialFilename for f in files: UnboundLocalError: local variable 'files' referenced before assignment

I'm not sure this is python 3 related since i do not use python 2 and do not know if this is related to somghin else...

It would be nice to try to support 3.x in master branch