PyEllips / pyElli

An open source ellipsometry analysis tool for reproducible and comprehensible building of optical models.
https://pyelli.readthedocs.io
GNU General Public License v3.0
17 stars 6 forks source link

Input tests for objects #133

Closed MarJMue closed 1 year ago

MarJMue commented 1 year ago

I think we should check parameters more rigorously and provide more helpful error messages for Materials, Layers and Structure to make the code more accessible.

E.g. Providing a material instead of a layer in Structure returns: AttributeError: 'IsotropicMaterial' object has no attribute 'get_permittivity_profile' which is not really helpful if you do not know the internals of pyelli.

MarJMue commented 1 year ago

Closed by #135