Replies: 3 comments 1 reply
-
Quick note, this is an issue introduced in python 3.10. I have checked in a fix and will try to get a updated conda version by tomorrow. |
Beta Was this translation helpful? Give feedback.
-
"for me" there is no emergency : I can go back to Python 3.9 in a dedicated environment ... |
Beta Was this translation helpful? Give feedback.
-
rayoptics 0.8.5 is available now thru pip or conda. This should address the problem under python 3.10. A note about using catalog lenses. Many times the materials in the lens files are not in any of the major glass catalogs rayoptics searches. When a glass name can't be found in any catalog, a material with an index of 1.5 is substituted and called 'not glassname'. Note the material on surface #2 above is 'not B270'.
Hope this helps. Questions are welcome :-) |
Beta Was this translation helpful? Give feedback.
-
Hello,
I followed the example : AddFromFileAndFlip.rst and tried to adapt it on a custom example. Here is my code :
It loads a Zemax Model taken from Thorlabs, adds it to my current Opm, then trys to filp. I think I did something similar as the example from "AddFromFileAndFlip.rst". However I get an error at the call to flip. Here is what the program writes, before the error and at the error :
And the error itself :
I don't know if I do something wrong (I would like to know what ...). I use rayoptics installed in a fresh new environment with anaconda. rayoptics version is, after conda :
thanks a lot, I am sorry to ask so many questions these days ...
Best regards,
Mike
Beta Was this translation helpful? Give feedback.
All reactions