Closed demisjohn closed 8 years ago
Thanks! Can you please PEP8-ify your code? EMpy strives to be PEP8 compliant as strictly as possible. https://www.python.org/dev/peps/pep-0008/ You can use autopep8 (https://pypi.python.org/pypi/autopep8) to automatically correct PEP8 violations, if you want.
Thanks and sorry for the long long wait.
Added tests for each argument type of
RefractiveIndex
class, in the filematerials_test.py
: all tests passed upon runningpython3.5 setup.py test
.In the process, realized that
__from_func()
doesn't return annp.array
, as all the other funcs do (proving the utility of writing such tests!), so updatedRefractiveIndex.__from_func()
to convertwls
to annp.array
.