-
Notifications
You must be signed in to change notification settings - Fork 8
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
Access to data is index-wise, not wavelength-wise #152
Comments
Hey @ortrs, thank you for your issue and the detailed bug report.
This is a bug, because your file contains additional
Yeah, I'm not entirely happy with accessing this by numeric values (because there may be small uncertainties) and we will refactor the whole data structure soon to interface this more conveniently. However, you could use a simple workaround by using a small region around the value, i.e., using Regarding the error message changes you're suggesting we cannot do much right now, because they are coming from pandas and not from pyElli. However, I agree that this should be reported cleaner and we will take this into account when refactoring the data structure. |
Works perfect now!
That is something I also noticed and that is because Woollam ellipsometer (the VASE model at least) can measure depolarization for modeling non-linearities (https://www.researchgate.net/profile/Shawana_Tabassum/post/Ellipsometry_How_to_get_n_and_d_from_Psi_and_Delta/attachment/5b27cc0bb53d2f63c3d1c11a/AS%3A638890587193344%401529334794039/download/a+short+course+in+ellipsometry.pdf, chapter 6-6, pp.152 (Adobe page index). I am still trying to find a way to post-process this data but it may be a whole module in itself. You may have already seen that you can find it where the "NaN" start on the first and last columns (very uncomfortable to process), but I guess you already figured that out. :- ) The bug is resolved on my end, thanks! |
Nice, I still would like to refine the code a bit, before I merge it. I'm not sure if I have time to do it before I'm in holidays. Otherwise, you just have to use this certain branch to work with your data and not the official version until I'm back (4th September). Is this fine?
Yes, I'm aware that woollam is also able to collect depolarization data. I have also written a module to extract the depolarization from mueller matrices, you can find it here https://github.com/PyEllips/pyCloude (based on Cloude decomposition). For mueller matrices you can use it to build a coherent jones matrix and use these matrices to fit your data to it. I'm not sure how to do this for depolarization values for psi and delta, but I think it should certainly be possible. However, we don't have really examples or experience with this. But if you like to explore this I'm happy to help. Edit: If you want to use this in error calculation we might take it into account in the ongoing discussion on dispersion errors, see #150
|
I would also leave this open until this is merged in the main branch (and with this "officially" fixed). It will be automatically closed as soon as I merge. |
I am trying to access the data from a .dat file by using pyElli but I encounter a few bugs:
Code excerpt:
My data has \lambda = {300-1000} nm (step 10nm) and \phi = [55,56,57,58] ° (4 angles available)
I can access through
psi_delta.loc
for several points, but there are a few I cannot:Does not return the data, rather
As noted in the https://github.com/PyEllips/pyElli/blob/master/examples/Basic%20Usage/Basic%20Usage.ipynb basic usage notebook, should return the values of [Ψ, Δ].
The following access works correctly:
It seems that data can be accessed through index, not through wavelength for woollam-like datasets.
Also trying to access inexisting keys raises an uncaught error:
Same for unexisting angles:
Probably connected to the fact that elements cannot be accessed as floats:
Suggestions for update:
Unit for x-axis should be available in the log itself (I can also try to change the units for an upcoming measurement to make sure that this is possible (and available for other types of data read).
glass na za 300 1000 nm 10 nm stp depol+iso.log
The text was updated successfully, but these errors were encountered: