Sterncat / opticspy

python optics module
MIT License
448 stars 126 forks source link

glass database: use reference_path as fallback path and added exception #24

Open georgmartius opened 6 years ago

georgmartius commented 6 years ago

If I want to use the code just as it is, without installing it, e.g. from a jupyter notebook the glasses cannot be loaded. I fixed this by using the reference path as a fallback and also raise an exception of nothing can be found.