hugoguillen / refractiveindex.info-sqlite Goto Github PK
View Code? Open in Web Editor NEWSQLite wrapper for the refractiveindex.info database.
SQLite wrapper for the refractiveindex.info database.
Hi,
the data structure of the refrativeindex.info yaml library that is available at there website has changed. This requires some minor changes in the refrativeindex.info-sqlite to work with the new format. Are you still maintaining this project and would you accept a PR to fix this?
Best.
Hi,
I stumbled across your sqlite3 wrapper cause I wanted to use the refractive index library
inside a plugin for a physical calculator I am currently developing. (https://gitlab.com/lyding/hfcl)
Therefor I would like this library to get rid of its verbose character. Currently vital information
and error messages are printed directly to the console which makes it unusable as library within a project.
Would you be interested in me adding a more meaningful error handling?
Of course I would stay backward compatible.
Kind regards,
lyding
Hi,
I started to add error handling using custom exceptions.
During this I realized that some of the Exceptions in material.py are constructed
but not raised. So they where never active. After raising them I tried to recreate
the database which yielded that two materials could not be loaded:
LOG: 800,organic,polyvinylpyrrolidone,Konig : Invalid yaml material file
LOG: 2687,3d,plastics,pvp : Invalid yaml material file
***Wrote SQLite DB on refractive.db
The exception is raised from the constructor of the Material class in line 64
which was inert before cause of a missing raise statement.
I inspected the Koenig.yaml file:
DATA:
It seems that this YAML file provides two different refractive index data.
I checked out the refractiveindex.info page and itt seems that they are using the formula
to interpolate the refractive index. I would change the loading code so it also prefers to formula
data over the tabulated data if both are given, or do you see a reason to do otherwise?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.