Open Jasonwi opened 1 month ago
Hey, I think this is a problem with some api changes that we have done with the package. In the old version, if you would specifiy a range of wavelengths but a single value for the refractive index n, we automatically assume a dispersionless material and would tile the refractive index value to the same shape as the wavelength. Since most realistic materials have dispersion, we changed this and ask the user to specify the refractive index over wavelenght by himself - however, I agree that we should make this more clear in the error message.
when running Appendix A.1 code
get error
tmm-fast version 0.2.1 os Windows 11 torch 2.4.0 numpy 2.0.1