OpticSim.jl
OpticSim.jl copied to clipboard
ERROR: UndefVarError: SCHOTT not defined
Describe the bug
I managed to install OpticSim and tried to run the example given in the docs to test a success installation but I get the below error of SCHOTT not defined.
To Reproduce
https://microsoft.github.io/OpticSim.jl/stable/#Installation
Run this example to check that everything installed properly:
using OpticSim
Vis.draw(SphericalLens(OpticSim.GlassCat.SCHOTT.N_BK7, 0.0, 10.0, 10.0, 5.0, 5.0))
Vis.save("assets/test_install.png") # hide
nothing # hide
Expected behavior Example given to test installation should work.
Screenshots
julia> using OpticSim
julia> Vis.draw(SphericalLens(OpticSim.GlassCat.SCHOTT.N_BK7, 0.0, 10.0, 10.0, 5.0, 5.0))
ERROR: UndefVarError: SCHOTT not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:35
[2] top-level scope
@ REPL[7]:1
Desktop (please complete the following information):
- OS: win 10
- Julia version 1.7.3
- OpticSim.jl v0.6.0
Additional context
#411 Solves this SHA256 for SCHOTT was outdated in sources.txt