NameError: name 'lens' is not defined
nnccoo opened this issue · 1 comments
nnccoo commented
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
Sterncat commented
Hi Nico,
Try to use "from opticspy import lens"?
I remember some contributor test the module in python 3. I think you can do
some trick to make it work.
Thank you!
Marvin
nnccoo <notifications@github.com> 于2018年11月20日周二 上午3:34写道:
… 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACiIhZib5mkS7O2lMthf6qhW5SlrnALMks5uw-jYgaJpZM4Yq63c>
.