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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file refractiveindexlibrary-0.0.1.tar.gz.
File metadata
- Download URL: refractiveindexlibrary-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5223d7681a92b7d739887d333f6511123a415ef6f03763e41ac33deb81a557f0
|
|
| MD5 |
6bef6eed851f6a3bba0310ffa3c44377
|
|
| BLAKE2b-256 |
c0ea171f1706026ac425292faaa8726e7b2d983fcbb7bd71a20778e6bb33c3d2
|
File details
Details for the file refractiveindexlibrary-0.0.1-py3-none-any.whl.
File metadata
- Download URL: refractiveindexlibrary-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
412d1498e3af0308ce04e8587949866bcbf1a7e184537d0a79218bfdb026ba98
|
|
| MD5 |
a4b7c3fd5dcca411af9d7252cb7c9284
|
|
| BLAKE2b-256 |
5684a7f49739def0094c0d422e3977c4e7973b2da5c0f7c9016c86f2d9aa7174
|