Skip to main content

No project description provided

Project description

Python interface to RefractiveIndex database

This package provides a programmatic interface to the refractiveindex.info database, as well as allowing users to import their own libraries in the same database format.

This package is built off of the refractiveindex package.

Installation

pip install refractiveindexlibrary

In order to use the refractiveindex.info data, you must also clone or download the database repository.

Usage

from refractiveindexlibrary import Library

lib = Library()

# Import the refractiveindex.info database
lib.add_database(dbpath = os.path.join(os.path.expanduser('~'), 'refractiveindex.info-database', 'database'))

shelves = lib.get_shelves()
print(shelves)

shelf = shelves[0]
books = lib.get_books(shelf)
print(books)

book = books[0]
pages = lib.get_pages(shelf, book)
print(pages)


SiO = lib.get_material(shelf='main', book='SiO', page='Hass')

wavelength_um = 0.600

SiO.get_n(wavelength_um)
# (1.96553846)

SiO.get_k(wavelength_um)
# (0.001)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

refractiveindexlibrary-0.0.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refractiveindexlibrary-0.0.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file refractiveindexlibrary-0.0.4.tar.gz.

File metadata

  • Download URL: refractiveindexlibrary-0.0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for refractiveindexlibrary-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a2deba0d7b4f97ffbdf2fccd2ac19031af6f92a218a001b8836484ca4e6b02ce
MD5 980a454cd81e477ce7cb9c3168eb9a56
BLAKE2b-256 9f149454d17468f52833a3fe236978bb977d7a9b784b692edc0a2c84f5c779c8

See more details on using hashes here.

File details

Details for the file refractiveindexlibrary-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for refractiveindexlibrary-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0591860f598a5bbae118dbb26ab1f9e7f3c9d96efa362322d47e0ecd3f4b250f
MD5 ec4804d66e6e8174fa827fd366429a67
BLAKE2b-256 39e7687c2d5ea45f51997499323a12006a3fa1fddbc954221a608d4c421f5496

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page