gds_fdtd.materials.rii¶
refractiveindex.info database support.
Reads material pages from a LOCAL copy of the refractiveindex.info database (https://github.com/polyanskiy/refractiveindex.info-database) — the DB is plain YAML, so a small reader avoids a wrapper dependency. Offline-first by design: nothing here ever downloads; CI and docs use a committed page fixture.
Database directory resolution order:
explicit
db_dirargument,GDS_FDTD_RII_DBenvironment variable,~/.cache/gds_fdtd/rii(where a user may clone/copy the database’sdatafolder).
Page path convention: <db_dir>/<shelf>/<book>/<page>.yml.
Supported data blocks (the overwhelmingly common ones):
tabulated nk/tabulated n/tabulated kformula 1(Sellmeier) andformula 2(Sellmeier-2)
Other formula types raise a clear error naming the page.
Functions
|
Load one refractiveindex.info page from the local database copy. |
Classes
|
Tabulated optical constants for one refractiveindex.info page. |