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.5.tar.gz (4.3 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.5-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refractiveindexlibrary-0.0.5.tar.gz
  • Upload date:
  • Size: 4.3 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.5.tar.gz
Algorithm Hash digest
SHA256 001f8ebf75abb902ee537ee9a7bd8c8280f75cdaaa7f6ae44f1c6665ba366487
MD5 19adcb2743292bb5b3359bc84a2fc400
BLAKE2b-256 fb685ba5e26ff23ae153c72f5198d91d9241e01dc1392836e8e8baaf985ff23c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for refractiveindexlibrary-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d113cb57414e07451636245952f507a367256d36cb7240a37ad6d2bfe7075893
MD5 0e506a4c09b7b84904988ba6a5e8717e
BLAKE2b-256 8bc07e97a3ad16864264f1c752624ee06d2b87cfc62cef42f1551b8a5b82e787

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