scottprahl / pypolar Goto Github PK
View Code? Open in Web Editor NEWPython modules for polarization changes using Jones or Mueller calculus
License: MIT License
Python modules for polarization changes using Jones or Mueller calculus
License: MIT License
I think it's a mistake, but my energy to dig into it is flagging.
My concern was aroused when I was getting values of ts that were >1, and noticing that the figure in the docs "Similar to Hecht Figure 4.41" doesn't really look like that figure. (It is 4.41 in my edition, but in a newer edition it's 4.49) I wondered if the difference is immaterial; the amplitudes obey "conservation laws" that are not as simple as r + t = 1, so I tried to make it all work. I ran out of energy. I believe there is a mistake, but I can't unambiguously convince myself that it is so.
fresnel.t_per_amplitude has
ts = 2 * d / (m/n_i)/ (c + d)
which doesn't look correct to me.
while sym_fresnel.t_per_amplitude has
ts = 2 * c / (c + d)
which looks correct to me.
Thanks for this package. It has saved me a lot of time.
-gapster
Am I right that pypolar depends on serial? I had strange issue installing pypolar using conda skeleton and serial from conda-forge. I don't know exactly what or why, but after installing pycolor and then serial my conda was rendered useless., throwing lots of errors. Guessing that the problem lies with the installation of serial, I will ask ...
How does pypolar use serial, and more to the point, can pypolar run without serial? If so, which modules use serial?
As I said, I'm guessing what caused the problem. and since it's a bit hard to see what serial does for pypolar, I'm starting there as a work-around.
I think it would be nice if one could draw the Poincaré sphere. As an example the library py_pol:
https://bitbucket.org/optbrea/py_pol/src/master/py_pol/drawings.py
Which is unfortunately GPL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.