Sterncat / opticspy

python optics module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameError: name 'lens' is not defined

nnccoo opened this issue · comments

Hi Marvin,
I try to get the foloowing minimal working example from the docs running without success:
import opticspy
New_Lens = lens.Lens(lens_name='Doublegauss',creator='XF')
New_Lens.FNO = 5
New_Lens.lens_info()

I get a NameError: name 'lens' is not defined.
Have you seen this error before? Is it because of Python 3.x?

Thank you a lot in advance!
Nico