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

Uploaded Python 3

File details

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

File metadata

  • Download URL: refractiveindexlibrary-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fcf5437226f04c7a8d9d9e29991102d1dfa8dd5d11c88ab7f998baa486dddf1e
MD5 b9f3a21bceb8d3f542529fcb0f59e601
BLAKE2b-256 48a8c4a12a269fdded8d93464810acebdfc2ccab2dfa954f83bd242acf1ada72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for refractiveindexlibrary-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 baa79116ba091afa0d18d1d14b82133e1e5879fd311f6d4e75cbebcc43a32c75
MD5 26037490d66407abc4c7aeeef6a2d738
BLAKE2b-256 16668eb17852d7ed12ea80c45078d8bbd1051bcf5dde4bb410dc43079d07b53b

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