-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fitting creates active material #1878
Comments
Thanks @alec-flexcompute . Could you post code snippets rather than images so it's easy to just copy paste. |
Contributor
Author
import numpy as np
import tidy3d as td
wvls = np.array([275e-3, 260e-3, 255e-3])
n_nAlGaN = np.array([2.72, 2.68, 2.53])
from tidy3d.plugins.dispersion import FastDispersionFitter, AdvancedFastFitterParam
nAlGaN_fitter = FastDispersionFitter(wvl_um=wvls, n_data=n_nAlGaN)
nAlGaN_mat, _ = nAlGaN_fitter.fit()
freq_list = nAlGaN_mat.angular_freq_to_Hz(nAlGaN_mat._imag_ep_extrema_with_samples())
ep = nAlGaN_mat.eps_model(freq_list)
for e in ep:
print(e.imag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When fitting 3 refractive index values, I get a material that has a negative k value, and diverges.
To Reproduce
To reproduce, see the attached example notebook:
The text was updated successfully, but these errors were encountered: