Skip to content
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

Transmission Fitting #185

Open
ChihYuLee opened this issue Jul 18, 2024 · 4 comments
Open

Transmission Fitting #185

ChihYuLee opened this issue Jul 18, 2024 · 4 comments

Comments

@ChihYuLee
Copy link

Hi,

Thanks for providing this great software. We are wondering how to to deal with transmission data fitting with your code given transmission has different components for its psi and delta (raw data), what is the main thing we have to be aware of? Or is there any example for this type of fitting?

@domna
Copy link
Member

domna commented Jul 18, 2024

Hello @ChihYuLee,

yes it's possible. You can just get the transmission from the Results object after an evaluation. See here for a reference. Please note that there is an error in the documentation and it should read $(T_{ss} + T_{pp})/2$.

It would look something like this:

structure.evaluate(lbda, ANGLE, solver=elli.Solver2x2).T

You can use this value to fit this to your experimental data. Unfortunately, we don't support this with the jupyter fitting widget, but you can simply use scipy's curve_fit. If you need additional help I think I have some example code somewhere which I could provide you.

@ChihYuLee
Copy link
Author

ChihYuLee commented Jul 19, 2024 via email

@MarJMue
Copy link
Collaborator

MarJMue commented Jul 19, 2024

Hi Chih-Yu,

I have uploaded a basic example for custom fitting code, where I used it to fit multiple incidence angles at once.

As @domna mentioned, you could adapt it to any optical output pyelli can calculate in the fit function.

@ChihYuLee
Copy link
Author

ChihYuLee commented Jul 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants