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.3.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.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refractiveindexlibrary-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 bed04e06538bdb24abf5c3e0c3a2abda702333d6a2ef02ed2e16e1d298fa6ee6
MD5 16ca2a2ea1ccde0fb64a58a441d27bb7
BLAKE2b-256 ff8a6b865b8c513674cf432e8fec023b490d2d0c793560a0f8705a4b42ef0091

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for refractiveindexlibrary-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1bcf3bee326e9ac103547eb3112beec4e4e57eed9a6b445da1aee727da37541d
MD5 32c46850744f47e649f1f5f93b5891ba
BLAKE2b-256 50caa880ba48b274253a2e6aab5b70cfa65278937ccbfc417fe2782e0f0cf3ea

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