jtambasco / opticalmaterialspy

Python library with optical material properties.
MIT License
28 stars 12 forks source link

CSV url parsing error from refractiveindex.info? #11

Closed mustafacc closed 1 year ago

mustafacc commented 1 year ago

It seems like the url parsing of refractive index might be out of date? https://github.com/jtambasco/opticalmaterialspy/blob/5b0b4132bdc5b2cb061491507f3ee6a19a3eec71/opticalmaterialspy/material.py#L82 example: import opticalmaterialspy as m si = m.RefractiveIndexWeb('https://refractiveindex.info/?shelf=main&book=Si&page=Li-293K') returns http error 404 from urllib after parsing it

Either way, the adjusted format seems to work on my end csv_url = 'https://refractiveindex.info/data_csv.php?datafile=database/data-nk/%s/%s/%s.yml' \