refnx / refellips

Spectroscopic ellipsometry data analysis in Python
https://refellips.readthedocs.io
Other
9 stars 10 forks source link

MAINT: force complex #68

Closed andyfaff closed 2 years ago

andyfaff commented 2 years ago

Has the effect of forcing np arrays of length 1 to the Python complex type. This code will produce an error if the array has len > 1, which is what we want in the slabs method. slabs wasn't designed to work with ric being an array of len == 1 either, which is why I made this change.