rayoptics.optical.obench module

Import files from OpticalBenchHub web page

This module implements lens import from the OpticalBenchHub portion of Bill Claff’s PhotonsToPhotos website.

To import a file from the website, navigate to the lens you wish to import and select the entire web address of the page. Paste this into the url argument of the read_obench_url() function.

read_obench_url(url, **kwargs)[source]

given a url to a OpticalBench file, return an OpticalModel and info.

read_lens(inpts)[source]