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.
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.